mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Merge pull request #1100 from vlj/master
GL: Fix output swizzling for fog and clip distance
This commit is contained in:
commit
24278e0eca
1 changed files with 7 additions and 2 deletions
|
@ -85,7 +85,12 @@ 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)
|
||||
OS << "out vec4 " << i.name << ";" << std::endl;
|
||||
{
|
||||
if (i.name == "fogc")
|
||||
OS << "out float " << i.name << ";" << std::endl;
|
||||
else
|
||||
OS << "out vec4 " << i.name << ";" << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
Reference in a new issue