From 673660d362a7df809ff9cea21855e134f4d370f5 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 21 Nov 2023 02:46:21 +0300 Subject: [PATCH] gl: Fix static sampler bindings - VS states come before FS mirrors --- rpcs3/Emu/RSX/GL/GLGSRender.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLGSRender.cpp b/rpcs3/Emu/RSX/GL/GLGSRender.cpp index d6c50ddeca..419d3c73bb 100644 --- a/rpcs3/Emu/RSX/GL/GLGSRender.cpp +++ b/rpcs3/Emu/RSX/GL/GLGSRender.cpp @@ -330,19 +330,19 @@ void GLGSRender::on_init_thread() sampler.bind(image_unit++); } - for (auto &sampler : m_fs_sampler_mirror_states) - { - sampler.create(); - sampler.apply_defaults(); - sampler.bind(image_unit++); - } - for (auto &sampler : m_vs_sampler_states) { sampler.create(); sampler.bind(image_unit++); } + for (auto& sampler : m_fs_sampler_mirror_states) + { + sampler.create(); + sampler.apply_defaults(); + sampler.bind(image_unit++); + } + //Occlusion query for (u32 i = 0; i < rsx::reports::occlusion_query_count; ++i) {