Checkpoint work for new GLSL compiler back-end.
[mesa.git] / src / mesa / tnl / t_vb_texmat.c
index fa9222c0f147f8254ff5e25c0d4447a207ef301b..674d36f8cbef3472e73c0be5eb586d4aea7061c6 100644 (file)
@@ -61,10 +61,7 @@ static GLboolean run_texmat_stage( GLcontext *ctx,
    struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb;
    GLuint i;
 
-   if (ctx->ShaderObjects._VertexShaderPresent)
-      return GL_TRUE;
-
-   if (!ctx->Texture._TexMatEnabled || ctx->VertexProgram._Enabled) 
+   if (!ctx->Texture._TexMatEnabled || ctx->VertexProgram._Current) 
       return GL_TRUE;
 
    /* ENABLE_TEXMAT implies that the texture matrix is not the