diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-28 01:50:14 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-28 01:50:14 +0200 |
commit | bb1ed66d9992883f9657bf2757bd40e70a707e8d (patch) | |
tree | 250d750cc3c28ea8029caf5535c51b9e1ca94534 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #3766 from ReinUsesLisp/renderpass-cache-key (diff) | |
download | yuzu-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/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
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) { |