mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
mesa: move update_texture_compare_function() call out of loop
This commit is contained in:
parent
555f0a8818
commit
ebabdf9920
1 changed files with 3 additions and 1 deletions
|
|
@ -400,7 +400,6 @@ texture_override(GLcontext *ctx,
|
|||
if (texObj->_Complete) {
|
||||
texUnit->_ReallyEnabled = textureBit;
|
||||
texUnit->_Current = texObj;
|
||||
update_texture_compare_function(ctx, texObj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -582,6 +581,9 @@ update_texture_state( GLcontext *ctx )
|
|||
texUnit->CurrentTex[texIndex], 1 << texIndex);
|
||||
}
|
||||
|
||||
if (texUnit->_Current)
|
||||
update_texture_compare_function(ctx, texUnit->_Current);
|
||||
|
||||
if (!texUnit->_ReallyEnabled) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue