yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

OpenGL: flip front faces if Z scale is inverted

This commit is contained in:
Liam 2022-04-04 10:04:10 -04:00
parent e9cf2d43f1
commit cb913e5c02
1 changed files with 3 additions and 2 deletions

View File

@ -561,8 +561,9 @@ void RasterizerOpenGL::SyncViewport() {
flags[Dirty::FrontFace] = false;
GLenum mode = MaxwellToGL::FrontFace(regs.front_face);
if (regs.screen_y_control.triangle_rast_flip != 0 &&
regs.viewport_transform[0].scale_y < 0.0f) {
if ((regs.screen_y_control.triangle_rast_flip != 0 &&
regs.viewport_transform[0].scale_y < 0.0f) ||
regs.viewport_transform[0].scale_z < 0.0f) {
switch (mode) {
case GL_CW:
mode = GL_CCW;