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:
@@ -258,7 +258,7 @@ void VKVertexDecompilerThread::insertMainEnd(std::stringstream & OS)
|
|||||||
{
|
{
|
||||||
OS << " if (conditional_rendering_enabled != 0 && conditional_rendering_predicate == 0)\n";
|
OS << " if (conditional_rendering_enabled != 0 && conditional_rendering_predicate == 0)\n";
|
||||||
OS << " {\n";
|
OS << " {\n";
|
||||||
OS << " gl_Position = vec4(0.);\n";
|
OS << " gl_Position = vec4(0., 0., 0., -1.);\n";
|
||||||
OS << " return;\n";
|
OS << " return;\n";
|
||||||
OS << "}\n\n";
|
OS << "}\n\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user