diff --git a/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp b/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp index f043947f1f..406ece755c 100644 --- a/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp +++ b/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp @@ -131,6 +131,9 @@ namespace gl : 0; GLVertexDecompilerThread comp(null_prog, shader_str, arr); + // Initialize compiler properties + comp.properties.has_indexed_constants = true; + ParamType uniforms = { PF_PARAM_UNIFORM, "vec4" }; uniforms.items.emplace_back("vc[468]", -1); diff --git a/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp b/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp index 94deb013b1..c0a713ec00 100644 --- a/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp +++ b/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp @@ -30,6 +30,9 @@ namespace vk : 0; VKVertexDecompilerThread comp(null_prog, shader_str, arr, vk_prog); + // Initialize compiler properties + comp.properties.has_indexed_constants = true; + ParamType uniforms = { PF_PARAM_UNIFORM, "vec4" }; uniforms.items.emplace_back("vc[468]", -1);