diff options
author | Brian Paul <[email protected]> | 2005-11-01 04:36:33 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-11-01 04:36:33 +0000 |
commit | 05051037101dfa053798cf5ad91d1975fd1aa6a7 (patch) | |
tree | 0cf21bc55a1c006a6f7fa99d7613e73428598fee /src/mesa/main/get.c | |
parent | ffec105109f5b16bfe8282bd477d4aa32b550015 (diff) |
Re-org and clean-up of vertx/fragment program limits (instructions,
temporaries, parameters, etc).
glGetProgramivARB() now returns all the right things.
Updated i915 and r300 code to initialize program native limits and
current program's native instruction/temporary/etc counts.
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 633d8e8617d..9bbc29e346c 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1707,7 +1707,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); + params[0] = INT_TO_BOOLEAN(ctx->Const.VertexProgram.MaxAttribs); break; case GL_FRAGMENT_PROGRAM_ARB: CHECK_EXTENSION_B(ARB_fragment_program, pname); @@ -3537,7 +3537,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); + params[0] = (GLfloat)(ctx->Const.VertexProgram.MaxAttribs); break; case GL_FRAGMENT_PROGRAM_ARB: CHECK_EXTENSION_F(ARB_fragment_program, pname); @@ -5367,7 +5367,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; + params[0] = ctx->Const.VertexProgram.MaxAttribs; break; case GL_FRAGMENT_PROGRAM_ARB: CHECK_EXTENSION_I(ARB_fragment_program, pname); |