shaderc: Flip gl_Position.y when building SPIR-V.
This commit is contained in:
parent
8d18cf1625
commit
d8160075e8
@ -1765,6 +1765,13 @@ namespace bgfx
|
|||||||
// );
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (0 != spirv)
|
||||||
|
{
|
||||||
|
preprocessor.writef(
|
||||||
|
"\tgl_Position.y = -gl_Position.y; \\\n"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
preprocessor.writef(
|
preprocessor.writef(
|
||||||
"\treturn _varying_"
|
"\treturn _varying_"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user