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 0dc1019..013f81b 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;