mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
opengl: fix color mask
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user