use ctx->VertexProgram._Current instead of ctx->VertexProgram._Enabled

This commit is contained in:
Brian
2007-02-22 09:10:24 -07:00
parent 96abc6bf72
commit 6ec7484ae8
+2 -2
View 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;