diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-05-11 23:51:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 23:51:18 +0200 |
commit | 2fb6df3fe93bb854960d0a6155d6917eb56ae3e6 (patch) | |
tree | 310f6b4588251c98e1b33ebddb32e6d5f25ce1fc /src/video_core | |
parent | Merge pull request #8313 from liamwhite/dma-bpp (diff) | |
parent | OpenGL: implement face flips according to NDC (diff) | |
download | yuzu-2fb6df3fe93bb854960d0a6155d6917eb56ae3e6.tar yuzu-2fb6df3fe93bb854960d0a6155d6917eb56ae3e6.tar.gz yuzu-2fb6df3fe93bb854960d0a6155d6917eb56ae3e6.tar.bz2 yuzu-2fb6df3fe93bb854960d0a6155d6917eb56ae3e6.tar.lz yuzu-2fb6df3fe93bb854960d0a6155d6917eb56ae3e6.tar.xz yuzu-2fb6df3fe93bb854960d0a6155d6917eb56ae3e6.tar.zst yuzu-2fb6df3fe93bb854960d0a6155d6917eb56ae3e6.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 7 |
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) { |