shaderc: Flip gl_Position.y when building SPIR-V.

This commit is contained in:
Branimir Karadžić 2018-04-12 19:54:19 -07:00
parent 8d18cf1625
commit d8160075e8
1 changed files with 7 additions and 0 deletions

View File

@ -1765,6 +1765,13 @@ namespace bgfx
// );
}
if (0 != spirv)
{
preprocessor.writef(
"\tgl_Position.y = -gl_Position.y; \\\n"
);
}
preprocessor.writef(
"\treturn _varying_"
);