From f4091b1027eecea1afd48ed632e196af25fda9e2 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sat, 28 Nov 2015 01:43:19 +0100 Subject: [PATCH] d3d12: Fix fragment shader accessing to gl_Position --- rpcs3/Emu/RSX/D3D12/D3D12FragmentProgramDecompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) 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]) {