summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-30 19:07:31 +0200
committerGitHub <noreply@github.com>2020-04-30 19:07:31 +0200
commitbf3f030a0dca67b744b595f70fbf71c3a22967b7 (patch)
tree8e71eab7a1e019aca4055f6053414fe1b453cf8c /src/video_core/renderer_opengl
parentMerge pull request #3799 from ReinUsesLisp/iadd-cc (diff)
parentmaxwell_3d: Fix depth clamping register (diff)
downloadyuzu-bf3f030a0dca67b744b595f70fbf71c3a22967b7.tar
yuzu-bf3f030a0dca67b744b595f70fbf71c3a22967b7.tar.gz
yuzu-bf3f030a0dca67b744b595f70fbf71c3a22967b7.tar.bz2
yuzu-bf3f030a0dca67b744b595f70fbf71c3a22967b7.tar.lz
yuzu-bf3f030a0dca67b744b595f70fbf71c3a22967b7.tar.xz
yuzu-bf3f030a0dca67b744b595f70fbf71c3a22967b7.tar.zst
yuzu-bf3f030a0dca67b744b595f70fbf71c3a22967b7.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 69a74449c..f33c4a8f9 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -1022,11 +1022,7 @@ void RasterizerOpenGL::SyncDepthClamp() {
}
flags[Dirty::DepthClampEnabled] = false;
- const auto& state = gpu.regs.view_volume_clip_control;
- UNIMPLEMENTED_IF_MSG(state.depth_clamp_far != state.depth_clamp_near,
- "Unimplemented depth clamp separation!");
-
- oglEnable(GL_DEPTH_CLAMP, state.depth_clamp_far || state.depth_clamp_near);
+ oglEnable(GL_DEPTH_CLAMP, gpu.regs.view_volume_clip_control.depth_clamp_disabled == 0);
}
void RasterizerOpenGL::SyncClipEnabled(u32 clip_mask) {