diff options
author | Michal Krol <[email protected]> | 2005-01-18 12:04:53 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2005-01-18 12:04:53 +0000 |
commit | 092af29ea18723558a194e20375dce6e53a06bd8 (patch) | |
tree | bf5793d36e4c01b73b8cedeefecf264e907f8302 /src/mesa/main | |
parent | af72b4dd8e7f752786ae785795c726c2aada6ae8 (diff) |
fix MAX_VERTEX_ATTRIBS_ARB query
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/get.c | 6 | ||||
-rw-r--r-- | src/mesa/main/get_gen.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 8c198b7fd7e..7b1351cadad 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -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); diff --git a/src/mesa/main/get_gen.py b/src/mesa/main/get_gen.py index 97fe8c78beb..c8f1834d1aa 100644 --- a/src/mesa/main/get_gen.py +++ b/src/mesa/main/get_gen.py @@ -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, |