mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 00:40:40 +01:00
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:
parent
c9dceb17c0
commit
d781cdc8fa
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue