[Bf-blender-cvs] [59efa332db3] temp-gpencil-fill: GPencil: Change ibuf planes to default

Antonio Vazquez noreply at git.blender.org
Sat Feb 6 16:46:03 CET 2021


Commit: 59efa332db31b1094e37dedb3336e046a67279e8
Author: Antonio Vazquez
Date:   Sat Feb 6 12:57:59 2021 +0100
Branches: temp-gpencil-fill
https://developer.blender.org/rB59efa332db31b1094e37dedb3336e046a67279e8

GPencil: Change ibuf planes to default

This is not used (deprecated) and better keep as default to avoid problems.

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

M	source/blender/editors/gpencil/gpencil_fill.c

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

diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 97d6358603f..34c3752abe1 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -648,7 +648,7 @@ static bool gpencil_render_offscreen(tGPDfill *tgpf)
 
   GPU_offscreen_bind(offscreen, true);
   uint flag = IB_rectfloat;
-  ImBuf *ibuf = IMB_allocImBuf(tgpf->sizex, tgpf->sizey, 1, flag);
+  ImBuf *ibuf = IMB_allocImBuf(tgpf->sizex, tgpf->sizey, 32, flag);
 
   rctf viewplane;
   float clip_start, clip_end;



More information about the Bf-blender-cvs mailing list