diff options
author | Gustaw Smolarczyk <[email protected]> | 2017-03-30 20:09:27 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-04-08 20:29:58 +0200 |
commit | 885012aab26ab293fe71f242d4379758a72c5ce0 (patch) | |
tree | bc3026a77e29d931217e37c3a9584b27fc14589a /src/mesa/main/ff_fragment_shader.cpp | |
parent | a86891a9a90d53cc0c333b28b45187cae9ee7bc4 (diff) |
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 <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/ff_fragment_shader.cpp')
-rw-r--r-- | src/mesa/main/ff_fragment_shader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp index 717f39e9d3e..2b4d99c8791 100644 --- a/src/mesa/main/ff_fragment_shader.cpp +++ b/src/mesa/main/ff_fragment_shader.cpp @@ -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) && |