mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 19:50:25 +01:00
mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE
This commit is contained in:
parent
6e34fc0d37
commit
f8baad2d25
1 changed files with 3 additions and 0 deletions
|
|
@ -3863,6 +3863,9 @@ _mesa_parse_arb_fragment_program(GLcontext* ctx, GLenum target,
|
|||
program->FogOption = ap.FogOption;
|
||||
program->UsesKill = ap.UsesKill;
|
||||
|
||||
if (program->FogOption)
|
||||
program->Base.InputsRead |= FRAG_BIT_FOGC;
|
||||
|
||||
if (program->Base.Instructions)
|
||||
_mesa_free(program->Base.Instructions);
|
||||
program->Base.Instructions = ap.Base.Instructions;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue