summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-28 01:50:14 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-28 01:50:14 +0200
commitbb1ed66d9992883f9657bf2757bd40e70a707e8d (patch)
tree250d750cc3c28ea8029caf5535c51b9e1ca94534 /src/video_core/renderer_opengl
parentMerge pull request #3766 from ReinUsesLisp/renderpass-cache-key (diff)
downloadyuzu-bb1ed66d9992883f9657bf2757bd40e70a707e8d.tar
yuzu-bb1ed66d9992883f9657bf2757bd40e70a707e8d.tar.gz
yuzu-bb1ed66d9992883f9657bf2757bd40e70a707e8d.tar.bz2
yuzu-bb1ed66d9992883f9657bf2757bd40e70a707e8d.tar.lz
yuzu-bb1ed66d9992883f9657bf2757bd40e70a707e8d.tar.xz
yuzu-bb1ed66d9992883f9657bf2757bd40e70a707e8d.tar.zst
yuzu-bb1ed66d9992883f9657bf2757bd40e70a707e8d.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 6fe155bcc..4b1906a98 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -999,11 +999,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) {