Only vertex program fix, bypass tnl vertex program
This commit is contained in:
@@ -79,7 +79,7 @@ static void brwUseProgram(GLcontext *ctx, GLuint program)
|
||||
brw->attribs.FragmentProgram->Current = sh_prog->FragmentProgram;
|
||||
ctx->FragmentProgram.Enabled = GL_TRUE;
|
||||
} else
|
||||
ctx->VertexProgram.Enabled = GL_FALSE;
|
||||
ctx->FragmentProgram.Enabled = GL_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1239,7 +1239,7 @@ _mesa_UpdateTexEnvProgram( GLcontext *ctx )
|
||||
|
||||
/* If a conventional fragment program/shader isn't in effect... */
|
||||
if (!ctx->FragmentProgram._Enabled &&
|
||||
!ctx->Shader.CurrentProgram) {
|
||||
(!ctx->Shader.CurrentProgram || !ctx->Shader.CurrentProgram->FragmentProgram)) {
|
||||
make_state_key(ctx, &key);
|
||||
hash = hash_key(&key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user