diff options
author | Antonioya <blendergit@gmail.com> | 2018-12-13 13:17:51 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-12-13 13:51:41 +0300 |
commit | 715ab529f171234231c06a63d6c0927006b7379d (patch) | |
tree | d46777a027bc63e4db8e6708ea0178176fea86fd /source/blender/draw/engines/gpencil | |
parent | aa63a87d37d3b190ec8c957c892af9c1be2ea301 (diff) |
GP: Changes textures from DEPTH24_STENCIL8 to DEPTH_COMPONENT24
As we are not using stencil info, we don't need this in the texture.
Diffstat (limited to 'source/blender/draw/engines/gpencil')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_engine.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c index 11bb5c76257..8a7d83b0abd 100644 --- a/source/blender/draw/engines/gpencil/gpencil_engine.c +++ b/source/blender/draw/engines/gpencil/gpencil_engine.c @@ -90,7 +90,7 @@ void DRW_gpencil_multisample_ensure(GPENCIL_Data *vedata, int rect_w, int rect_h } if (txl->multisample_depth == NULL) { txl->multisample_depth = GPU_texture_create_2D_multisample( - rect_w, rect_h, GPU_DEPTH24_STENCIL8, NULL, samples, NULL); + rect_w, rect_h, GPU_DEPTH_COMPONENT24, NULL, samples, NULL); } GPU_framebuffer_ensure_config( &fbl->multisample_fb, { @@ -120,7 +120,8 @@ static void GPENCIL_create_framebuffers(void *vedata) } /* temp textures */ - e_data.temp_depth_tx_a = DRW_texture_pool_query_2D(size[0], size[1], GPU_DEPTH24_STENCIL8, + e_data.temp_depth_tx_a = DRW_texture_pool_query_2D( + size[0], size[1], GPU_DEPTH_COMPONENT24, &draw_engine_gpencil_type); e_data.temp_color_tx_a = DRW_texture_pool_query_2D(size[0], size[1], fb_format, &draw_engine_gpencil_type); @@ -131,7 +132,7 @@ static void GPENCIL_create_framebuffers(void *vedata) }); e_data.temp_depth_tx_b = DRW_texture_pool_query_2D( - size[0], size[1], GPU_DEPTH24_STENCIL8, + size[0], size[1], GPU_DEPTH_COMPONENT24, &draw_engine_gpencil_type); e_data.temp_color_tx_b = DRW_texture_pool_query_2D( size[0], size[1], fb_format, @@ -144,7 +145,7 @@ static void GPENCIL_create_framebuffers(void *vedata) /* used for rim and shadow FX effects */ e_data.temp_depth_tx_fx = DRW_texture_pool_query_2D( - size[0], size[1], GPU_DEPTH24_STENCIL8, + size[0], size[1], GPU_DEPTH_COMPONENT24, &draw_engine_gpencil_type); e_data.temp_color_tx_fx = DRW_texture_pool_query_2D( size[0], size[1], fb_format, @@ -157,7 +158,7 @@ static void GPENCIL_create_framebuffers(void *vedata) /* background framebuffer to speed up drawing process (always 16 bits) */ e_data.background_depth_tx = DRW_texture_pool_query_2D( - size[0], size[1], GPU_DEPTH24_STENCIL8, + size[0], size[1], GPU_DEPTH_COMPONENT24, &draw_engine_gpencil_type); e_data.background_color_tx = DRW_texture_pool_query_2D( size[0], size[1], GPU_RGBA32F, @@ -166,7 +167,7 @@ static void GPENCIL_create_framebuffers(void *vedata) &fbl->background_fb, { GPU_ATTACHMENT_TEXTURE(e_data.background_depth_tx), GPU_ATTACHMENT_TEXTURE(e_data.background_color_tx) - }); + }); } } |