d3d12: Fix fragment shader accessing to gl_Position

This commit is contained in:
Vincent Lejeune 2015-11-28 01:43:19 +01:00
parent 174fb97172
commit f4091b1027

View file

@ -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])
{