summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get_gen.py
diff options
context:
space:
mode:
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 1ca8121e893..d229bddfea7 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" ),