softgpu: Cache logicOp in draw pixel state.

This commit is contained in:
Unknown W. Brackets 2022-01-15 11:17:43 -08:00
parent c0d548846f
commit acad2640dd
3 changed files with 22 additions and 22 deletions

View file

@ -482,7 +482,7 @@ void SOFTRAST_CALL DrawSinglePixel(int x, int y, int z, int fog, Vec4IntArg colo
// Logic ops are applied after blending (if blending is enabled.)
if (pixelID.applyLogicOp && !clearMode) {
// Logic ops don't affect stencil, which happens inside ApplyLogicOp.
new_color = ApplyLogicOp(gstate.getLogicOp(), old_color, new_color);
new_color = ApplyLogicOp(pixelID.cached.logicOp, old_color, new_color);
}
if (clearMode) {