texenv: Use VP->Current, since _Current isn't updated at this point.
authorBrian Paul <brianp@vmware.com>
Tue, 4 Aug 2009 15:15:33 +0000 (09:15 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 4 Aug 2009 15:15:33 +0000 (09:15 -0600)
(cherry picked from master, commit a9ba1bfeb3a2852c6eda718e73c46c972a286648)

src/mesa/main/texenvprogram.c

index 8229de4c475ff29d54f6d69766f1ab4ba4713ee6..3ff30058ecfc7e7e196b07a318898def9b57d64c 100644 (file)
@@ -329,7 +329,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;