[Bf-blender-cvs] [f832a3c9b02] greasepencil-refactor: GPencil: Disable AA resource creation when enabling Simplify

Antonio Vazquez noreply at git.blender.org
Mon Jan 6 11:21:45 CET 2020


Commit: f832a3c9b025a9adb9ef98604bc413e179dc573b
Author: Antonio Vazquez
Date:   Mon Jan 6 11:21:36 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rBf832a3c9b025a9adb9ef98604bc413e179dc573b

GPencil: Disable AA resource creation when enabling Simplify

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

M	source/blender/draw/engines/gpencil/gpencil_engine.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 8459ac12bc7..172a76c4378 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -1277,6 +1277,7 @@ static void GPENCIL_cache_finish_new(void *ved)
   GPENCIL_Data *vedata = (GPENCIL_Data *)ved;
   GPENCIL_PrivateData *pd = vedata->stl->pd;
   GPENCIL_FramebufferList *fbl = vedata->fbl;
+  const DRWContextState *draw_ctx = DRW_context_state_get();
 
   /* Upload UBO data. */
   BLI_memblock_iter iter;
@@ -1360,7 +1361,9 @@ static void GPENCIL_cache_finish_new(void *ved)
                                     });
     }
 
-    GPENCIL_antialiasing_init(vedata);
+    if (!GPENCIL_SIMPLIFY_AA(draw_ctx->scene)) {
+      GPENCIL_antialiasing_init(vedata);
+    }
   }
 }



More information about the Bf-blender-cvs mailing list