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:
kd-11 2020-01-03 00:48:46 +03:00 committed by kd-11
parent 7786681954
commit d12762414a

View File

@ -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";
}