From 5a3a125730596af602b9f66150b201c0b177169d Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Thu, 22 May 2025 20:51:16 +0200 Subject: [PATCH] Set the colorMask correctly in the graphics.Pipeline fixes #1492 --- src/graphics.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics.zig b/src/graphics.zig index 083b2253..fdb2ac15 100644 --- a/src/graphics.zig +++ b/src/graphics.zig @@ -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;