mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-15 19:54:05 +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:
1 parent
515e023396
commit
e0675e91ef
1 file changed
+2
-1
@@ -929,7 +929,8 @@ void RasterizerOpenGL::SyncLogicOpState() {
|
||||
if (!state.logic_op.enabled)
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user