[Bf-blender-cvs] [c1dbb5e1ad2] temp-gpencil-fill: GPencil: Reduce Ibuf size

Antonio Vazquez noreply at git.blender.org
Fri Feb 5 17:25:29 CET 2021


Commit: c1dbb5e1ad22df87368f7eb7d8e2bd8be39ba802
Author: Antonio Vazquez
Date:   Fri Feb 5 17:25:21 2021 +0100
Branches: temp-gpencil-fill
https://developer.blender.org/rBc1dbb5e1ad22df87368f7eb7d8e2bd8be39ba802

GPencil: Reduce Ibuf size

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

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 4ab2d871f19..6cefa4c50fb 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -647,8 +647,8 @@ static bool gpencil_render_offscreen(tGPDfill *tgpf)
   }
 
   GPU_offscreen_bind(offscreen, true);
-  uint flag = IB_rect | IB_rectfloat;
-  ImBuf *ibuf = IMB_allocImBuf(tgpf->sizex, tgpf->sizey, 32, flag);
+  uint flag = IB_rectfloat;
+  ImBuf *ibuf = IMB_allocImBuf(tgpf->sizex, tgpf->sizey, 1, flag);
 
   rctf viewplane;
   float clip_start, clip_end;



More information about the Bf-blender-cvs mailing list