use ctx->VertexProgram._Current instead of ctx->VertexProgram._Enabled
authorBrian <brian@yutani.localnet.net>
Thu, 22 Feb 2007 16:10:24 +0000 (09:10 -0700)
committerBrian <brian@yutani.localnet.net>
Thu, 22 Feb 2007 16:10:24 +0000 (09:10 -0700)
src/mesa/vbo/vbo_context.h

index 0dc1019b39fc3e5110ed01279b44f7d394328130..013f81bdd5c8b891cc59d08f91e978f7173e5f11 100644 (file)
@@ -96,9 +96,9 @@ enum {
 
 static INLINE GLuint get_program_mode( GLcontext *ctx )
 {
-   if (!ctx->VertexProgram._Enabled)
+   if (!ctx->VertexProgram._Current)
       return VP_NONE;
-   else if (ctx->VertexProgram.Current->IsNVProgram)
+   else if (ctx->VertexProgram._Current->IsNVProgram)
       return VP_NV;
    else
       return VP_ARB;