2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

gl_rasterizer: Remove front facing hack

This commit is contained in:
ReinUsesLisp 2019-11-04 01:54:35 -03:00
parent f1facaeaef
commit e9d2fad984
No known key found for this signature in database
GPG key ID: 2DFC508897B39CFE

View file

@ -1093,18 +1093,6 @@ void RasterizerOpenGL::SyncCullMode() {
} }
state.cull.front_face = MaxwellToGL::FrontFace(regs.cull.front_face); 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() { void RasterizerOpenGL::SyncPrimitiveRestart() {