summaryrefslogtreecommitdiff
path: root/src/mesa/main/get_gen.py
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-02-09 18:46:16 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-02-09 18:46:16 +0000
commit4f1f5e336b50ac9f7ea615a550e3b65201350305 (patch)
treec74240bf90283c6da2368decd976f8ca144376e7 /src/mesa/main/get_gen.py
parenta8d5b176b5208de61667ce0d901d69485eea1957 (diff)
glGet*(GL_FRAGMENT_PROGRAM_BINDING_NV) was returning the vertex program binding.
Diffstat (limited to 'src/mesa/main/get_gen.py')
-rw-r--r--src/mesa/main/get_gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get_gen.py b/src/mesa/main/get_gen.py
index 1ca8121e89..d229bddfea 100644
--- a/src/mesa/main/get_gen.py
+++ b/src/mesa/main/get_gen.py
@@ -807,7 +807,7 @@ StateVars = [
( "GL_MAX_TEXTURE_IMAGE_UNITS_NV", GLint,
["ctx->Const.MaxTextureImageUnits"], "", "NV_fragment_program" ),
( "GL_FRAGMENT_PROGRAM_BINDING_NV", GLint,
- ["ctx->VertexProgram.Current ? ctx->VertexProgram.Current->Base.Id : 0"],
+ ["ctx->FragmentProgram.Current ? ctx->FragmentProgram.Current->Base.Id : 0"],
"", "NV_fragment_program" ),
( "GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV", GLint,
["MAX_NV_FRAGMENT_PROGRAM_PARAMS"], "", "NV_fragment_program" ),