diff options
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index aaff7176f9f..98ab70eb4d0 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1390,12 +1390,10 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) CHECK_EXTENSION_B(NV_point_sprite, pname); *params = ENUM_TO_BOOL(ctx->Point.SpriteRMode); break; -#if GL_VERSION_2_0 case GL_POINT_SPRITE_COORD_ORIGIN: CHECK_EXTENSION_B(ARB_point_sprite, pname); *params = ENUM_TO_BOOL(ctx->Point.SpriteOrigin); break; -#endif /* GL_SGIS_generate_mipmap */ case GL_GENERATE_MIPMAP_HINT_SGIS: @@ -1626,6 +1624,14 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) break; #endif +#if FEATURE_ARB_vertex_program + /* GL_NV_vertex_program and GL_ARB_fragment_program define others */ + case GL_MAX_VERTEX_ATTRIBS_ARB: + CHECK_EXTENSION_B(ARB_vertex_program, pname); + *params = (ctx->Const.MaxVertexProgramAttribs > 0) ? GL_TRUE : GL_FALSE; + break; +#endif + #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: CHECK_EXTENSION_B(ARB_fragment_program, pname); @@ -2948,12 +2954,10 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) CHECK_EXTENSION_D(NV_point_sprite, pname); *params = (GLdouble) ctx->Point.SpriteRMode; break; -#if GL_VERSION_2_0 case GL_POINT_SPRITE_COORD_ORIGIN: CHECK_EXTENSION_D(ARB_point_sprite, pname); *params = (GLdouble) ctx->Point.SpriteOrigin; break; -#endif /* GL_SGIS_generate_mipmap */ case GL_GENERATE_MIPMAP_HINT_SGIS: @@ -3182,6 +3186,14 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) break; #endif +#if FEATURE_ARB_vertex_program + /* GL_NV_vertex_program and GL_ARB_fragment_program define others */ + case GL_MAX_VERTEX_ATTRIBS_ARB: + CHECK_EXTENSION_D(ARB_vertex_program, pname); + *params = (GLdouble) ctx->Const.MaxVertexProgramAttribs; + break; +#endif + #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: CHECK_EXTENSION_D(ARB_fragment_program, pname); @@ -4480,12 +4492,10 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) CHECK_EXTENSION_F(NV_point_sprite, pname); *params = (GLfloat) ctx->Point.SpriteRMode; break; -#if GL_VERSION_2_0 case GL_POINT_SPRITE_COORD_ORIGIN: CHECK_EXTENSION_F(ARB_point_sprite, pname); *params = (GLfloat) ctx->Point.SpriteOrigin; break; -#endif /* GL_SGIS_generate_mipmap */ case GL_GENERATE_MIPMAP_HINT_SGIS: @@ -4714,6 +4724,14 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) break; #endif +#if FEATURE_ARB_vertex_program + /* GL_NV_vertex_program and GL_ARB_fragment_program define others */ + case GL_MAX_VERTEX_ATTRIBS_ARB: + CHECK_EXTENSION_F(ARB_vertex_program, pname); + *params = (GLfloat) ctx->Const.MaxVertexProgramAttribs; + break; +#endif + #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: CHECK_EXTENSION_F(ARB_fragment_program, pname); @@ -6050,12 +6068,10 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) CHECK_EXTENSION_I(NV_point_sprite, pname); *params = (GLint) ctx->Point.SpriteRMode; break; -#if GL_VERSION_2_0 case GL_POINT_SPRITE_COORD_ORIGIN: CHECK_EXTENSION_I(ARB_point_sprite, pname); *params = (GLint) ctx->Point.SpriteOrigin; break; -#endif /* GL_SGIS_generate_mipmap */ case GL_GENERATE_MIPMAP_HINT_SGIS: @@ -6284,6 +6300,14 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) break; #endif +#if FEATURE_ARB_vertex_program + /* GL_NV_vertex_program and GL_ARB_fragment_program define others */ + case GL_MAX_VERTEX_ATTRIBS_ARB: + CHECK_EXTENSION_I(ARB_vertex_program, pname); + *params = (GLint) ctx->Const.MaxVertexProgramAttribs; + break; +#endif + #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: CHECK_EXTENSION_I(ARB_fragment_program, pname); |