Merge pull request #1167 from lioncash/assert

gl_rasterizer: Correct assertion condition in SyncLogicOpState()
This commit is contained in:
bunnei 2018-08-25 10:50:59 -04:00 committed by GitHub
commit 23b86fd3ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -929,7 +929,8 @@ void RasterizerOpenGL::SyncLogicOpState() {
if (!state.logic_op.enabled) if (!state.logic_op.enabled)
return; return;
ASSERT_MSG(regs.blend.enable == 0, "Blending and logic op can't be enabled at the same time."); 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); state.logic_op.operation = MaxwellToGL::LogicOp(regs.logic_op.operation);
} }