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) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to