From 97bc3d7e78926ada206511dae2381468c608865c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 1 Apr 2003 18:22:23 +0000 Subject: GL_FOG_COORDINATE_SOURCE_EXT query was missing --- src/mesa/main/get.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 68a95e9af0..996f712ca2 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1,4 +1,4 @@ -/* $Id: get.c,v 1.107 2003/04/01 18:16:33 brianp Exp $ */ +/* $Id: get.c,v 1.108 2003/04/01 18:22:23 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1286,6 +1286,10 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) CHECK_EXTENSION_B(EXT_fog_coord, pname); *params = INT_TO_BOOL(ctx->Array.FogCoord.Stride); break; + case GL_FOG_COORDINATE_SOURCE_EXT: + CHECK_EXTENSION_B(EXT_fog_coord, pname); + *params = ENUM_TO_BOOL(ctx->Fog.FogCoordinateSource); + break; /* GL_EXT_texture_lod_bias */ case GL_MAX_TEXTURE_LOD_BIAS_EXT: @@ -2690,6 +2694,10 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) CHECK_EXTENSION_D(EXT_fog_coord, pname); *params = (GLdouble) ctx->Array.FogCoord.Stride; break; + case GL_FOG_COORDINATE_SOURCE_EXT: + CHECK_EXTENSION_D(EXT_fog_coord, pname); + *params = (GLdouble) ctx->Fog.FogCoordinateSource; + break; /* GL_EXT_texture_lod_bias */ case GL_MAX_TEXTURE_LOD_BIAS_EXT: @@ -4068,6 +4076,10 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) CHECK_EXTENSION_F(EXT_fog_coord, pname); *params = (GLfloat) ctx->Array.FogCoord.Stride; break; + case GL_FOG_COORDINATE_SOURCE_EXT: + CHECK_EXTENSION_F(EXT_fog_coord, pname); + *params = (GLfloat) ctx->Fog.FogCoordinateSource; + break; /* GL_EXT_texture_lod_bias */ case GL_MAX_TEXTURE_LOD_BIAS_EXT: @@ -5484,6 +5496,10 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) CHECK_EXTENSION_I(EXT_fog_coord, pname); *params = (GLint) ctx->Array.FogCoord.Stride; break; + case GL_FOG_COORDINATE_SOURCE_EXT: + CHECK_EXTENSION_I(EXT_fog_coord, pname); + *params = (GLint) ctx->Fog.FogCoordinateSource; + break; /* GL_EXT_texture_lod_bias */ case GL_MAX_TEXTURE_LOD_BIAS_EXT: -- cgit v1.2.3