diff options
| author | 2019-11-04 01:54:35 -0300 | |
|---|---|---|
| committer | 2019-11-07 01:52:18 -0300 | |
| commit | e9d2fad9849ff7fba8d63a16c838b79a3e752327 (patch) | |
| tree | b1e21df478484ee374f888f4dd1d77b245f0a566 | |
| parent | gl_shader_decompiler: Fix typo "y_negate"->"y_direction" (diff) | |
| download | yuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.tar.gz yuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.tar.xz yuzu-e9d2fad9849ff7fba8d63a16c838b79a3e752327.zip | |
gl_rasterizer: Remove front facing hack
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 12 |
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() { | |||
| 1093 | } | 1093 | } |
| 1094 | 1094 | ||
| 1095 | state.cull.front_face = MaxwellToGL::FrontFace(regs.cull.front_face); | 1095 | state.cull.front_face = MaxwellToGL::FrontFace(regs.cull.front_face); |
| 1096 | |||
| 1097 | // If the GPU is configured to flip the rasterized triangles, then we need to flip the | ||
| 1098 | // notion of front and back. | ||
| 1099 | const bool flip_triangles{regs.screen_y_control.triangle_rast_flip != 0 && | ||
| 1100 | regs.viewport_transform[0].scale_y > 0.0f}; | ||
| 1101 | if (flip_triangles) { | ||
| 1102 | if (state.cull.front_face == GL_CCW) { | ||
| 1103 | state.cull.front_face = GL_CW; | ||
| 1104 | } else if (state.cull.front_face == GL_CW) { | ||
| 1105 | state.cull.front_face = GL_CCW; | ||
| 1106 | } | ||
| 1107 | } | ||
| 1108 | } | 1096 | } |
| 1109 | 1097 | ||
| 1110 | void RasterizerOpenGL::SyncPrimitiveRestart() { | 1098 | void RasterizerOpenGL::SyncPrimitiveRestart() { |