From 46b30279817f6ffa78613baf3de41792dc381bca Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 19 Sep 2021 23:18:20 +0300 Subject: [PATCH] rsx: Invariably clear the texture state if referenced. --- rpcs3/Emu/RSX/RSXThread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/RSXThread.cpp b/rpcs3/Emu/RSX/RSXThread.cpp index d20bb79af1..a782ba9f7b 100644 --- a/rpcs3/Emu/RSX/RSXThread.cpp +++ b/rpcs3/Emu/RSX/RSXThread.cpp @@ -1894,6 +1894,8 @@ namespace rsx if (!(textures_ref & 1)) continue; auto &tex = rsx::method_registers.fragment_textures[i]; + current_fp_texture_state.clear(i); + if (tex.enabled()) { current_fragment_program.texture_params[i].scale[0] = sampler_descriptors[i]->scale_x; @@ -1905,7 +1907,6 @@ namespace rsx m_graphics_state |= rsx::pipeline_state::fragment_texture_state_dirty; u32 texture_control = 0; - current_fp_texture_state.clear(i); current_fp_texture_state.set_dimension(sampler_descriptors[i]->image_type, i); if (tex.alpha_kill_enabled())