diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-25 21:02:17 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 20:39:27 +0100 |
commit | 96ac3d518a9882a2a040f319c47a567467c9266d (patch) | |
tree | d1465f931df28d12891b07e5ab8c1d921a396376 /src/video_core/renderer_opengl/gl_state.cpp | |
parent | common/math_util: Support float type rectangles (diff) | |
download | yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.gz yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.bz2 yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.lz yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.xz yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.tar.zst yuzu-96ac3d518a9882a2a040f319c47a567467c9266d.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 7d3bc1a1f..732cb3a3c 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -189,11 +189,6 @@ void OpenGLState::ApplyRasterizerDiscard() { } void OpenGLState::ApplyColorMask() { - if (!dirty.color_mask) { - return; - } - dirty.color_mask = false; - for (std::size_t i = 0; i < Maxwell::NumRenderTargets; ++i) { const auto& updated = color_mask[i]; auto& current = cur_state.color_mask[i]; @@ -232,11 +227,6 @@ void OpenGLState::ApplyPrimitiveRestart() { } void OpenGLState::ApplyStencilTest() { - if (!dirty.stencil_state) { - return; - } - dirty.stencil_state = false; - Enable(GL_STENCIL_TEST, cur_state.stencil.test_enabled, stencil.test_enabled); const auto ConfigStencil = [](GLenum face, const auto& config, auto& current) { @@ -351,11 +341,6 @@ void OpenGLState::ApplyTargetBlending(std::size_t target, bool force) { } void OpenGLState::ApplyBlending() { - if (!dirty.blend_state) { - return; - } - dirty.blend_state = false; - if (independant_blend.enabled) { const bool force = independant_blend.enabled != cur_state.independant_blend.enabled; for (std::size_t target = 0; target < Maxwell::NumRenderTargets; ++target) { @@ -383,11 +368,6 @@ void OpenGLState::ApplyLogicOp() { } void OpenGLState::ApplyPolygonOffset() { - if (!dirty.polygon_offset) { - return; - } - dirty.polygon_offset = false; - 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, |