diff --git a/rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp b/rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp index 1cb5348612..98eb6c2cc3 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp @@ -121,6 +121,8 @@ void D3D12FragmentDecompiler::insertMainStart(std::stringstream & OS) for (ParamItem PI : PT.items) OS << " " << PT.type << " " << PI.name << " = In." << PI.name << ";" << std::endl; } + // A bit unclean, but works. + OS << " " << "float4 gl_Position = In.Position;" << std::endl; // Declare output for (ParamType PT : m_parr.params[PF_PARAM_NONE]) {