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 8229de4..3ff3005 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;