[Bf-blender-cvs] [411a8d13e94] greasepencil-object: Increase multisample texture precission
Antonio Vazquez
noreply at git.blender.org
Wed Jun 27 16:45:20 CEST 2018
Commit: 411a8d13e94d09136da36fbf02a9cd98d9475c5e
Author: Antonio Vazquez
Date: Wed Jun 27 16:45:04 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB411a8d13e94d09136da36fbf02a9cd98d9475c5e
Increase multisample texture precission
When use FX get glitches.
===================================================================
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 fb20a3068ef..9f489bf01ba 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -85,7 +85,7 @@ void DRW_gpencil_multisample_ensure(GPENCIL_Data *vedata, int rect_w, int rect_h
fbl->multisample_fb = GPU_framebuffer_create();
if (fbl->multisample_fb) {
if (txl->multisample_color == NULL) {
- txl->multisample_color = GPU_texture_create_2D_multisample(rect_w, rect_h, GPU_RGBA8, NULL, samples, NULL);
+ txl->multisample_color = GPU_texture_create_2D_multisample(rect_w, rect_h, GPU_RGBA32F, NULL, samples, NULL);
}
if (txl->multisample_depth == NULL) {
txl->multisample_depth = GPU_texture_create_2D_multisample(rect_w, rect_h, GPU_DEPTH24_STENCIL8, NULL, samples, NULL);
More information about the Bf-blender-cvs
mailing list