diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-26 07:34:29 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:32:05 +0100 |
commit | 7d9a5e9e30b9e197e5fe3bfd10116e7ea078494a (patch) | |
tree | 1bab402ced0e876a89696487d12ae4cb9a6a10ca /src/video_core/renderer_opengl/gl_state.cpp | |
parent | gl_state: Remove clip control tracking (diff) | |
download | yuzu-7d9a5e9e30b9e197e5fe3bfd10116e7ea078494a.tar yuzu-7d9a5e9e30b9e197e5fe3bfd10116e7ea078494a.tar.gz yuzu-7d9a5e9e30b9e197e5fe3bfd10116e7ea078494a.tar.bz2 yuzu-7d9a5e9e30b9e197e5fe3bfd10116e7ea078494a.tar.lz yuzu-7d9a5e9e30b9e197e5fe3bfd10116e7ea078494a.tar.xz yuzu-7d9a5e9e30b9e197e5fe3bfd10116e7ea078494a.tar.zst yuzu-7d9a5e9e30b9e197e5fe3bfd10116e7ea078494a.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 69a8a4eb1..d62a55b2f 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -106,35 +106,6 @@ void OpenGLState::ApplyProgramPipeline() { } } -void OpenGLState::ApplyStencilTest() { - Enable(GL_STENCIL_TEST, cur_state.stencil.test_enabled, stencil.test_enabled); - - const auto ConfigStencil = [](GLenum face, const auto& config, auto& current) { - if (current.test_func != config.test_func || current.test_ref != config.test_ref || - current.test_mask != config.test_mask) { - current.test_func = config.test_func; - current.test_ref = config.test_ref; - current.test_mask = config.test_mask; - glStencilFuncSeparate(face, config.test_func, config.test_ref, config.test_mask); - } - if (current.action_depth_fail != config.action_depth_fail || - current.action_depth_pass != config.action_depth_pass || - current.action_stencil_fail != config.action_stencil_fail) { - current.action_depth_fail = config.action_depth_fail; - current.action_depth_pass = config.action_depth_pass; - current.action_stencil_fail = config.action_stencil_fail; - glStencilOpSeparate(face, config.action_stencil_fail, config.action_depth_fail, - config.action_depth_pass); - } - if (current.write_mask != config.write_mask) { - current.write_mask = config.write_mask; - glStencilMaskSeparate(face, config.write_mask); - } - }; - ConfigStencil(GL_FRONT, stencil.front, cur_state.stencil.front); - ConfigStencil(GL_BACK, stencil.back, cur_state.stencil.back); -} - void OpenGLState::ApplyGlobalBlending() { const Blend& updated = blend[0]; Blend& current = cur_state.blend[0]; @@ -235,7 +206,6 @@ void OpenGLState::Apply() { ApplyFramebufferState(); ApplyShaderProgram(); ApplyProgramPipeline(); - ApplyStencilTest(); ApplyBlending(); ApplyTextures(); ApplySamplers(); |