summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-11-04 05:54:35 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-11-07 05:52:18 +0100
commite9d2fad9849ff7fba8d63a16c838b79a3e752327 (patch)
treeb1e21df478484ee374f888f4dd1d77b245f0a566 /src/video_core
parentgl_shader_decompiler: Fix typo "y_negate"->"y_direction" (diff)
downloadyuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.tar
yuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.tar.gz
yuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.tar.bz2
yuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.tar.lz
yuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.tar.xz
yuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.tar.zst
yuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 53ee754ff..0e9338ab6 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -1093,18 +1093,6 @@ void RasterizerOpenGL::SyncCullMode() {
}
state.cull.front_face = MaxwellToGL::FrontFace(regs.cull.front_face);
-
- // If the GPU is configured to flip the rasterized triangles, then we need to flip the
- // notion of front and back.
- const bool flip_triangles{regs.screen_y_control.triangle_rast_flip != 0 &&
- regs.viewport_transform[0].scale_y > 0.0f};
- if (flip_triangles) {
- if (state.cull.front_face == GL_CCW) {
- state.cull.front_face = GL_CW;
- } else if (state.cull.front_face == GL_CW) {
- state.cull.front_face = GL_CCW;
- }
- }
}
void RasterizerOpenGL::SyncPrimitiveRestart() {