[Bf-blender-cvs] [fc239df81cb] greasepencil-refactor: GPU: Framebuffer: Fix missing color mask

Clément Foucault noreply at git.blender.org
Sat Dec 14 03:31:15 CET 2019


Commit: fc239df81cbb5cff6ca52f1f0c4bffabcc96141f
Author: Clément Foucault
Date:   Sat Dec 14 02:36:59 2019 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rBfc239df81cbb5cff6ca52f1f0c4bffabcc96141f

GPU: Framebuffer: Fix missing color mask

===================================================================

M	source/blender/gpu/intern/gpu_framebuffer.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c
index 9da842f6409..b04cce095b7 100644
--- a/source/blender/gpu/intern/gpu_framebuffer.c
+++ b/source/blender/gpu/intern/gpu_framebuffer.c
@@ -617,6 +617,8 @@ void GPU_framebuffer_multi_clear(GPUFrameBuffer *fb, const float (*clear_cols)[4
 {
   CHECK_FRAMEBUFFER_IS_BOUND(fb);
 
+  glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
+
   GPUAttachmentType type = GPU_FB_COLOR_ATTACHMENT0;
   for (int i = 0; type < GPU_FB_MAX_ATTACHEMENT; i++, type++) {
     if (fb->attachments[type].tex != NULL) {



More information about the Bf-blender-cvs mailing list