mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
GL: Fix output swizzling for fog and clip distance
This commit is contained in:
parent
dcad0e286a
commit
2dbac65613
1 changed files with 7 additions and 2 deletions
|
@ -85,9 +85,14 @@ void GLVertexDecompilerThread::insertOutputs(std::stringstream & OS, const std::
|
|||
for (auto &i : reg_table)
|
||||
{
|
||||
if (m_parr.HasParam(PF_PARAM_NONE, "vec4", i.src_reg) && i.need_declare)
|
||||
{
|
||||
if (i.name == "fogc")
|
||||
OS << "out float " << i.name << ";" << std::endl;
|
||||
else
|
||||
OS << "out vec4 " << i.name << ";" << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void GLVertexDecompilerThread::insertMainStart(std::stringstream & OS)
|
||||
|
@ -113,7 +118,7 @@ void GLVertexDecompilerThread::insertMainEnd(std::stringstream & OS)
|
|||
for (auto &i : reg_table)
|
||||
{
|
||||
if (m_parr.HasParam(PF_PARAM_NONE, "vec4", i.src_reg))
|
||||
OS << " " << i.name << " = " << i.src_reg << ";" << std::endl;
|
||||
OS << " " << i.name << " = " << i.src_reg << i.src_reg_mask << ";" << std::endl;
|
||||
}
|
||||
OS << " gl_Position = gl_Position * scaleOffsetMat;" << std::endl;
|
||||
OS << "}" << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue