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:
committed by
Marek Olšák
parent
a86891a9a9
commit
885012aab2
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user