Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-06-22 18:11:53 +0300
committerAntonioya <blendergit@gmail.com>2019-06-22 18:11:53 +0300
commitd51ad19f8c8e8091cf822a279f288a0559e139a7 (patch)
treedb8c9deb7105eefab2caf5e821d77859826d305b /source/blender/draw/engines/gpencil/gpencil_engine.c
parent8bf1977d311fc7d8b5979fdd6ac5b982076b1e60 (diff)
GPencil: Don't use MSAA for background texture
This texture has already the MSAA applied.
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_engine.c')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_engine.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 916f2eed575..61ab45eae03 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -924,10 +924,12 @@ void GPENCIL_draw_scene(void *ved)
if ((!is_render) && (stl->g_data->session_flag & GP_DRW_PAINT_PAINTING)) {
GPU_framebuffer_bind(dfbl->default_fb);
- MULTISAMPLE_GP_SYNC_ENABLE(stl->storage->multisamples, fbl);
if (obact->dt != OB_BOUNDBOX) {
DRW_draw_pass(psl->background_pass);
}
+
+ MULTISAMPLE_GP_SYNC_ENABLE(stl->storage->multisamples, fbl);
+
DRW_draw_pass(psl->drawing_pass);
MULTISAMPLE_GP_SYNC_DISABLE(stl->storage->multisamples, fbl, dfbl->default_fb, txl);