fix MAX_VERTEX_ATTRIBS_ARB query
authorMichal Krol <mjkrol@gmail.org>
Tue, 18 Jan 2005 12:04:53 +0000 (12:04 +0000)
committerMichal Krol <mjkrol@gmail.org>
Tue, 18 Jan 2005 12:04:53 +0000 (12:04 +0000)
src/mesa/main/get.c
src/mesa/main/get_gen.py

index 8c198b7fd7e9221777b5edc43b6dfe2f40e1344c..7b1351cadadcde5fa1844b074083b5322bffc8bc 100644 (file)
@@ -1718,7 +1718,7 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
          break;
       case GL_MAX_VERTEX_ATTRIBS_ARB:
          CHECK_EXTENSION_B(ARB_vertex_program, pname);
-         params[0] = INT_TO_BOOLEAN(ctx->Const.MaxVertexProgramAttribs > 0);
+         params[0] = INT_TO_BOOLEAN(ctx->Const.MaxVertexProgramAttribs);
          break;
       case GL_FRAGMENT_PROGRAM_ARB:
          CHECK_EXTENSION_B(ARB_fragment_program, pname);
@@ -3521,7 +3521,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
          break;
       case GL_MAX_VERTEX_ATTRIBS_ARB:
          CHECK_EXTENSION_F(ARB_vertex_program, pname);
-         params[0] = (GLfloat)(ctx->Const.MaxVertexProgramAttribs > 0);
+         params[0] = (GLfloat)(ctx->Const.MaxVertexProgramAttribs);
          break;
       case GL_FRAGMENT_PROGRAM_ARB:
          CHECK_EXTENSION_F(ARB_fragment_program, pname);
@@ -5324,7 +5324,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
          break;
       case GL_MAX_VERTEX_ATTRIBS_ARB:
          CHECK_EXTENSION_I(ARB_vertex_program, pname);
-         params[0] = ctx->Const.MaxVertexProgramAttribs > 0;
+         params[0] = ctx->Const.MaxVertexProgramAttribs;
          break;
       case GL_FRAGMENT_PROGRAM_ARB:
          CHECK_EXTENSION_I(ARB_fragment_program, pname);
index 97fe8c78bebdb93d7d742b743d8196c7cf41e522..c8f1834d1aa803f0b1188de4ee6e088aabd9d1ce 100644 (file)
@@ -865,7 +865,7 @@ StateVars = [
 
        # GL_ARB_vertex_program
        ( "GL_MAX_VERTEX_ATTRIBS_ARB", GLint,
-         ["ctx->Const.MaxVertexProgramAttribs > 0"], "", "ARB_vertex_program" ),
+         ["ctx->Const.MaxVertexProgramAttribs"], "", "ARB_vertex_program" ),
 
        # GL_ARB_fragment_program
        ( "GL_FRAGMENT_PROGRAM_ARB", GLboolean,