mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-11 07:20:30 +01:00
mesa: set SamplersUsed bitmask when parsing ARB fragment programs
This commit is contained in:
parent
0dd79011b9
commit
d1284d3be2
1 changed files with 4 additions and 1 deletions
|
|
@ -3910,8 +3910,11 @@ _mesa_parse_arb_fragment_program(GLcontext* ctx, GLenum target,
|
|||
program->Base.NumNativeTexIndirections = ap.Base.NumTexIndirections;
|
||||
program->Base.InputsRead = ap.Base.InputsRead;
|
||||
program->Base.OutputsWritten = ap.Base.OutputsWritten;
|
||||
for (i = 0; i < MAX_TEXTURE_IMAGE_UNITS; i++)
|
||||
for (i = 0; i < MAX_TEXTURE_IMAGE_UNITS; i++) {
|
||||
program->Base.TexturesUsed[i] = ap.TexturesUsed[i];
|
||||
if (ap.TexturesUsed[i])
|
||||
program->Base.SamplersUsed |= (1 << i);
|
||||
}
|
||||
program->Base.ShadowSamplers = ap.ShadowSamplers;
|
||||
program->FogOption = ap.FogOption;
|
||||
program->UsesKill = ap.UsesKill;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue