Set the colorMask correctly in the graphics.Pipeline

fixes #1492
This commit is contained in:
IntegratedQuantum 2025-05-22 20:51:16 +02:00
parent a15f1a96bc
commit 5a3a125730

View File

@ -1760,6 +1760,7 @@ pub const Pipeline = struct { // MARK: Pipeline
// TODO: logicOp
for(self.blendState.attachments, 0..) |attachment, i| {
c.glColorMask(@intFromBool(attachment.colorWriteMask.r), @intFromBool(attachment.colorWriteMask.g), @intFromBool(attachment.colorWriteMask.b), @intFromBool(attachment.colorWriteMask.a));
if(!attachment.enabled) {
c.glDisable(c.GL_BLEND);
continue;