temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabled
This commit is contained in:
@@ -1081,6 +1081,7 @@ create_new_program(GLcontext *ctx, struct state_key *key,
|
|||||||
* a reduced value and not what is expected in FogOption
|
* a reduced value and not what is expected in FogOption
|
||||||
*/
|
*/
|
||||||
p.program->FogOption = ctx->Fog.Mode;
|
p.program->FogOption = ctx->Fog.Mode;
|
||||||
|
p.program->Base.InputsRead |= FRAG_BIT_FOGC; /* XXX new */
|
||||||
} else
|
} else
|
||||||
p.program->FogOption = GL_NONE;
|
p.program->FogOption = GL_NONE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user