[Bf-blender-cvs] [3587e5ca1ef] greasepencil-object: Fix problem when increase viewport qualitty

Antonio Vazquez noreply at git.blender.org
Fri Jun 29 09:52:42 CEST 2018


Commit: 3587e5ca1ef3d21182153491c009e6e3cfafdd34
Author: Antonio Vazquez
Date:   Fri Jun 29 09:52:30 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB3587e5ca1ef3d21182153491c009e6e3cfafdd34

Fix problem when increase viewport qualitty

The reason of the problem was the precission of the background buffer. The original value was not enough when viewport qualitty was > 0.1

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

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 505df143c64..7cf9187ff70 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -123,10 +123,10 @@ static void GPENCIL_create_framebuffers(void *vedata)
 			GPU_ATTACHMENT_TEXTURE(e_data.temp_color_tx_a)
 			});
 
-		/* background framebuffer to speed up drawing process (always 16 bits) */
+		/* background framebuffer to speed up drawing process */
 		e_data.background_depth_tx = DRW_texture_pool_query_2D(size[0], size[1], GPU_DEPTH24_STENCIL8,
 			&draw_engine_gpencil_type);
-		e_data.background_color_tx = DRW_texture_pool_query_2D(size[0], size[1], GPU_RGBA16F,
+		e_data.background_color_tx = DRW_texture_pool_query_2D(size[0], size[1], GPU_RGBA32F,
 			&draw_engine_gpencil_type);
 		GPU_framebuffer_ensure_config(&fbl->background_fb, {
 			GPU_ATTACHMENT_TEXTURE(e_data.background_depth_tx),



More information about the Bf-blender-cvs mailing list