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 2eefae82558ae3267bbe30286fd4e9b81df4ef95..1ee78ffa16e2e378eeab3bd3212d12f9795a9f0d 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;