diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-26 00:21:53 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 20:51:23 +0100 |
commit | 42708c762edee4f5bf2fa1d15a4ab764525fb044 (patch) | |
tree | 4f9cad90567fa062e67e0486a62e7fb189e610f1 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | gl_state: Remove blend color tracking (diff) | |
download | yuzu-42708c762edee4f5bf2fa1d15a4ab764525fb044.tar yuzu-42708c762edee4f5bf2fa1d15a4ab764525fb044.tar.gz yuzu-42708c762edee4f5bf2fa1d15a4ab764525fb044.tar.bz2 yuzu-42708c762edee4f5bf2fa1d15a4ab764525fb044.tar.lz yuzu-42708c762edee4f5bf2fa1d15a4ab764525fb044.tar.xz yuzu-42708c762edee4f5bf2fa1d15a4ab764525fb044.tar.zst yuzu-42708c762edee4f5bf2fa1d15a4ab764525fb044.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 5c5273b5d..9d4b351fb 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1156,15 +1156,10 @@ void RasterizerOpenGL::SyncBlendState() { void RasterizerOpenGL::SyncLogicOpState() { const auto& regs = system.GPU().Maxwell3D().regs; - state.logic_op.enabled = regs.logic_op.enable != 0; - - if (!state.logic_op.enabled) - return; - - ASSERT_MSG(regs.blend.enable[0] == 0, - "Blending and logic op can't be enabled at the same time."); - - state.logic_op.operation = MaxwellToGL::LogicOp(regs.logic_op.operation); + oglEnable(GL_COLOR_LOGIC_OP, regs.logic_op.enable); + if (regs.logic_op.enable) { + glLogicOp(MaxwellToGL::LogicOp(regs.logic_op.operation)); + } } void RasterizerOpenGL::SyncScissorTest(OpenGLState& current_state) { |