From b16ab75648002868652df36ac61b31276f24b39c Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 27 Dec 2024 01:07:23 +0300 Subject: [PATCH] rsx: Fix vertex program compiler crash --- rpcs3/Emu/RSX/Program/VertexProgramDecompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Program/VertexProgramDecompiler.cpp b/rpcs3/Emu/RSX/Program/VertexProgramDecompiler.cpp index 53cece6ad5..c5f8742be2 100644 --- a/rpcs3/Emu/RSX/Program/VertexProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/Program/VertexProgramDecompiler.cpp @@ -409,7 +409,7 @@ std::string VertexProgramDecompiler::BuildCode() { const auto i = offset++; if (i == index) continue; // Replace with self - reloc_table.emplace_back(fmt::format("vc[%d]", index), fmt::format("vc[%d]", i)); + reloc_table.emplace_back(fmt::format("_fetch_constant(%d)", index), fmt::format("_fetch_constant(%d)", i)); } // One-time patch