opengl: fix color mask

This commit is contained in:
Sasha Szpakowski
2023-10-09 14:10:24 -03:00
parent 06569b4fed
commit 4787d50078
+2 -2
View File
@@ -1567,8 +1567,8 @@ void Graphics::setColorMask(ColorChannelMask mask)
flushBatchedDraws();
uint32 maskbits =
((mask.r ? 1 : 0) << 1) | ((mask.g ? 1 : 0) << 2) |
((mask.g ? 1 : 0) << 3) | ((mask.a ? 1 : 0) << 4);
((mask.r ? 1 : 0) << 0) | ((mask.g ? 1 : 0) << 1) |
((mask.g ? 1 : 0) << 2) | ((mask.a ? 1 : 0) << 3);
gl.setColorWriteMask(maskbits);
states.back().colorMask = mask;