diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-12-10 22:33:49 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-12-11 00:51:46 +0100 |
commit | 7ffb672f6178cc18fe70f3c798a55298ba275be5 (patch) | |
tree | 82e494fd45cf84d676b1e0b3c88e08bc0ce17300 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #3208 from ReinUsesLisp/vk-shader-decompiler (diff) | |
download | yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.gz yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.bz2 yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.lz yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.xz yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.tar.zst yuzu-7ffb672f6178cc18fe70f3c798a55298ba275be5.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 9eef7fcd2..88d78d2ad 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1028,6 +1028,10 @@ void RasterizerOpenGL::SyncViewport(OpenGLState& current_state) { 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; } void RasterizerOpenGL::SyncClipEnabled( |