mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 17:11:23 +00:00
vk: Change default vertex output value
- Prefer w!=0 to avoid a situation where xyz/w = nan. More of a theoretical problem, but some calculations break down in such a situation.
This commit is contained in:
parent
7786681954
commit
d12762414a
@ -258,7 +258,7 @@ void VKVertexDecompilerThread::insertMainEnd(std::stringstream & OS)
|
||||
{
|
||||
OS << " if (conditional_rendering_enabled != 0 && conditional_rendering_predicate == 0)\n";
|
||||
OS << " {\n";
|
||||
OS << " gl_Position = vec4(0.);\n";
|
||||
OS << " gl_Position = vec4(0., 0., 0., -1.);\n";
|
||||
OS << " return;\n";
|
||||
OS << "}\n\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user