mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
mesa: simplify a loop in _mesa_update_texture_state
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
68a0e15f44
commit
bc4e914f95
1 changed files with 1 additions and 7 deletions
|
|
@ -840,13 +840,7 @@ _mesa_update_texture_state(struct gl_context *ctx)
|
|||
int old_max_unit = ctx->Texture._MaxEnabledTexImageUnit;
|
||||
BITSET_DECLARE(enabled_texture_units, MAX_COMBINED_TEXTURE_IMAGE_UNITS);
|
||||
|
||||
for (i = 0; i < MESA_SHADER_STAGES; i++) {
|
||||
if (ctx->_Shader->CurrentProgram[i]) {
|
||||
prog[i] = ctx->_Shader->CurrentProgram[i];
|
||||
} else {
|
||||
prog[i] = NULL;
|
||||
}
|
||||
}
|
||||
memcpy(prog, ctx->_Shader->CurrentProgram, sizeof(prog));
|
||||
|
||||
if (prog[MESA_SHADER_FRAGMENT] == NULL &&
|
||||
_mesa_arb_fragment_program_enabled(ctx)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue