mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
mesa/main/ff_frag: Use gl_texture_object::TargetIndex.
Instead of computing it once again using _mesa_tex_target_to_index. Signed-off-by: Gustaw Smolarczyk <wielkiegie@gmail.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
a86891a9a9
commit
885012aab2
1 changed files with 1 additions and 2 deletions
|
|
@ -414,8 +414,7 @@ static GLuint make_state_key( struct gl_context *ctx, struct state_key *key )
|
|||
key->unit[i].enabled = 1;
|
||||
inputs_referenced |= VARYING_BIT_TEX(i);
|
||||
|
||||
key->unit[i].source_index = _mesa_tex_target_to_index(ctx,
|
||||
texObj->Target);
|
||||
key->unit[i].source_index = texObj->TargetIndex;
|
||||
|
||||
key->unit[i].shadow =
|
||||
((samp->CompareMode == GL_COMPARE_R_TO_TEXTURE) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue