diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-26 06:27:26 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:31:57 +0100 |
commit | 07a954e67f786fad4b6324837489af705788a6b9 (patch) | |
tree | c2ba642a02d4f31526854abd679c3b773f67d9f0 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | gl_state: Remove clip distances tracking (diff) | |
download | yuzu-07a954e67f786fad4b6324837489af705788a6b9.tar yuzu-07a954e67f786fad4b6324837489af705788a6b9.tar.gz yuzu-07a954e67f786fad4b6324837489af705788a6b9.tar.bz2 yuzu-07a954e67f786fad4b6324837489af705788a6b9.tar.lz yuzu-07a954e67f786fad4b6324837489af705788a6b9.tar.xz yuzu-07a954e67f786fad4b6324837489af705788a6b9.tar.zst yuzu-07a954e67f786fad4b6324837489af705788a6b9.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index f4efddcc0..8f9bb4c93 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -467,6 +467,9 @@ void RasterizerOpenGL::Clear() { SyncScissorTest(); } + // TODO: Signal state tracker about these changes + glClipControl(GL_LOWER_LEFT, GL_ZERO_TO_ONE); + UNIMPLEMENTED_IF(regs.clear_flags.viewport); clear_state.Apply(); @@ -950,11 +953,9 @@ void RasterizerOpenGL::SyncViewport() { if (regs.screen_y_control.y_negate != 0) { flip_y = !flip_y; } - state.clip_control.origin = flip_y ? GL_UPPER_LEFT : GL_LOWER_LEFT; - state.clip_control.depth_mode = - regs.depth_mode == Tegra::Engines::Maxwell3D::Regs::DepthMode::ZeroToOne - ? GL_ZERO_TO_ONE - : GL_NEGATIVE_ONE_TO_ONE; + glClipControl(flip_y ? GL_UPPER_LEFT : GL_LOWER_LEFT, + regs.depth_mode == Maxwell::DepthMode::ZeroToOne ? GL_ZERO_TO_ONE + : GL_NEGATIVE_ONE_TO_ONE); } void RasterizerOpenGL::SyncDepthClamp() { |