mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-17 15:27:34 +01:00
gl_rasterizer: Correct assertion condition in SyncLogicOpState()
Previously the assert would always be hit, since it was the equivalent of: array == nullptr, which is never true.
This commit is contained in:
parent
165c23c848
commit
8fd9eb71b4
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user