texenv: Use VP->Current, since _Current isn't updated at this point.
authorEric Anholt <eric@anholt.net>
Mon, 3 Aug 2009 19:38:56 +0000 (12:38 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 3 Aug 2009 19:54:41 +0000 (12:54 -0700)
src/mesa/main/texenvprogram.c

index 2eefae8..1ee78ff 100644 (file)
@@ -341,7 +341,7 @@ static GLbitfield get_fp_input_mask( GLcontext *ctx )
       if (vertexShader)
          vprog = ctx->Shader.CurrentProgram->VertexProgram;
       else
-         vprog = ctx->VertexProgram._Current;
+         vprog = ctx->VertexProgram.Current;
 
       vp_outputs = vprog->Base.OutputsWritten;