summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-05-07 02:04:56 +0200
committerLiam <byteslice@airmail.cc>2022-05-07 02:05:21 +0200
commitb317f54f22291aca9371427051ca2cefdcbedfb3 (patch)
treebfeb08fec95365a13344e86b4db94831888df31e /src/video_core
parentMerge pull request #8300 from Morph1984/resultval-range (diff)
downloadyuzu-b317f54f22291aca9371427051ca2cefdcbedfb3.tar
yuzu-b317f54f22291aca9371427051ca2cefdcbedfb3.tar.gz
yuzu-b317f54f22291aca9371427051ca2cefdcbedfb3.tar.bz2
yuzu-b317f54f22291aca9371427051ca2cefdcbedfb3.tar.lz
yuzu-b317f54f22291aca9371427051ca2cefdcbedfb3.tar.xz
yuzu-b317f54f22291aca9371427051ca2cefdcbedfb3.tar.zst
yuzu-b317f54f22291aca9371427051ca2cefdcbedfb3.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 8ef79753f..159b71161 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -563,12 +563,11 @@ void RasterizerOpenGL::SyncViewport() {
flags[Dirty::FrontFace] = false;
GLenum mode = MaxwellToGL::FrontFace(regs.front_face);
- bool flip_faces = false;
- if (regs.screen_y_control.triangle_rast_flip != 0 &&
- regs.viewport_transform[0].scale_y < 0.0f) {
+ bool flip_faces = true;
+ if (regs.screen_y_control.triangle_rast_flip != 0) {
flip_faces = !flip_faces;
}
- if (regs.viewport_transform[0].scale_z < 0.0f) {
+ if (regs.viewport_transform[0].scale_y < 0.0f) {
flip_faces = !flip_faces;
}
if (flip_faces) {