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:
@@ -1247,7 +1247,8 @@ _mesa_UpdateTexEnvProgram( GLcontext *ctx )
|
|||||||
|
|
||||||
/* If a conventional fragment program/shader isn't in effect... */
|
/* If a conventional fragment program/shader isn't in effect... */
|
||||||
if (!ctx->FragmentProgram._Enabled &&
|
if (!ctx->FragmentProgram._Enabled &&
|
||||||
!ctx->Shader.CurrentProgram) {
|
(!ctx->Shader.CurrentProgram ||
|
||||||
|
!ctx->Shader.CurrentProgram->FragmentProgram) ) {
|
||||||
make_state_key(ctx, &key);
|
make_state_key(ctx, &key);
|
||||||
hash = hash_key(&key);
|
hash = hash_key(&key);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user