VERY experimental Nintendo Switch 2 emulator
C++
Shader: Don't read ShaderSetup from global state
Yuri Kunde Schlesnere500250c9785
diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cppindex 8e2b8c5483..d1f11142dc 100644--- a/src/video_core/shader/shader_interpreter.cpp+++ b/src/video_core/shader/shader_interpreter.cpp@@ -75,9 +75,9 @@ static void RunInterpreter(const ShaderSetup& setup, UnitState& state, DebugData}};- const auto& uniforms = g_state.vs.uniforms;- const auto& swizzle_data = g_state.vs.swizzle_data;- const auto& program_code = g_state.vs.program_code;+ const auto& uniforms = setup.uniforms;+ const auto& swizzle_data = setup.swizzle_data;+ const auto& program_code = setup.program_code;// Placeholder for invalid inputsstatic float24 dummy_vec4_float24[4];