Generate a texenv fragment program if there's a GLSL vertex shader but no GLSL fragment shader.

This allows Glean glsl1 test to get pretty far.
This commit is contained in:
Brian
2007-10-02 16:55:21 -06:00
parent c9dceb17c0
commit d781cdc8fa

View File

@@ -1247,7 +1247,8 @@ _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);