diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-26 04:25:53 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 20:49:20 +0100 |
commit | a0321b984fc03610ad7b20d2ee345fd978103b19 (patch) | |
tree | 71aea201f3a60a3cacc933ba9d322066b27fe89d /src/video_core/renderer_opengl/gl_state.cpp | |
parent | gl_state: Remove alpha test tracking (diff) | |
download | yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.gz yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.bz2 yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.lz yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.xz yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.zst yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 59fd8e421..05c271ad2 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -347,27 +347,6 @@ void OpenGLState::ApplyLogicOp() { } } -void OpenGLState::ApplyPolygonOffset() { - Enable(GL_POLYGON_OFFSET_FILL, cur_state.polygon_offset.fill_enable, - polygon_offset.fill_enable); - Enable(GL_POLYGON_OFFSET_LINE, cur_state.polygon_offset.line_enable, - polygon_offset.line_enable); - Enable(GL_POLYGON_OFFSET_POINT, cur_state.polygon_offset.point_enable, - polygon_offset.point_enable); - - if (UpdateTie(std::tie(cur_state.polygon_offset.factor, cur_state.polygon_offset.units, - cur_state.polygon_offset.clamp), - std::tie(polygon_offset.factor, polygon_offset.units, polygon_offset.clamp))) { - if (GLAD_GL_EXT_polygon_offset_clamp && polygon_offset.clamp != 0) { - glPolygonOffsetClamp(polygon_offset.factor, polygon_offset.units, polygon_offset.clamp); - } else { - UNIMPLEMENTED_IF_MSG(polygon_offset.clamp != 0, - "Unimplemented Depth polygon offset clamp."); - glPolygonOffset(polygon_offset.factor, polygon_offset.units); - } - } -} - void OpenGLState::ApplyClipControl() { if (UpdateTie(std::tie(cur_state.clip_control.origin, cur_state.clip_control.depth_mode), std::tie(clip_control.origin, clip_control.depth_mode))) { @@ -432,7 +411,6 @@ void OpenGLState::Apply() { ApplyTextures(); ApplySamplers(); ApplyImages(); - ApplyPolygonOffset(); ApplyClipControl(); ApplyRenderBuffer(); } |