use ctx->VertexProgram._Current instead of ctx->VertexProgram._Enabled
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user