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
path: root/source
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-11-13 15:44:34 +0300
committerAntonioya <blendergit@gmail.com>2018-11-13 15:44:56 +0300
commit4e1057780b314abea6b2d38849b003e31243cbf8 (patch)
treeb45062be4753d6a745e21198e5425cb38364ca26 /source
parent6ae84ddc6e7c40d89896c3c5a4f7c67dceb586d5 (diff)
GP: Remove redundant texture attachment
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_engine.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 1ec060e12f8..df57037cc74 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -718,14 +718,6 @@ void GPENCIL_draw_scene(void *ved)
}
if (DRW_state_is_fbo()) {
- /* attach temp textures */
- GPU_framebuffer_texture_attach(fbl->temp_fb_a, e_data.temp_depth_tx_a, 0, 0);
- GPU_framebuffer_texture_attach(fbl->temp_fb_a, e_data.temp_color_tx_a, 0, 0);
- GPU_framebuffer_texture_attach(fbl->temp_fb_b, e_data.temp_depth_tx_b, 0, 0);
- GPU_framebuffer_texture_attach(fbl->temp_fb_b, e_data.temp_color_tx_b, 0, 0);
-
- GPU_framebuffer_texture_attach(fbl->background_fb, e_data.background_depth_tx, 0, 0);
- GPU_framebuffer_texture_attach(fbl->background_fb, e_data.background_color_tx, 0, 0);
/* Draw all pending objects */
if (stl->g_data->gp_cache_used > 0) {
@@ -815,17 +807,9 @@ void GPENCIL_draw_scene(void *ved)
/* free memory */
gpencil_free_obj_runtime(stl);
- /* detach temp textures */
+ /* reset */
if (DRW_state_is_fbo()) {
- GPU_framebuffer_texture_detach(fbl->temp_fb_a, e_data.temp_depth_tx_a);
- GPU_framebuffer_texture_detach(fbl->temp_fb_a, e_data.temp_color_tx_a);
- GPU_framebuffer_texture_detach(fbl->temp_fb_b, e_data.temp_depth_tx_b);
- GPU_framebuffer_texture_detach(fbl->temp_fb_b, e_data.temp_color_tx_b);
-
- GPU_framebuffer_texture_detach(fbl->background_fb, e_data.background_depth_tx);
- GPU_framebuffer_texture_detach(fbl->background_fb, e_data.background_color_tx);
-
- /* attach again default framebuffer after detach textures */
+ /* attach again default framebuffer */
if (!is_render) {
GPU_framebuffer_bind(dfbl->default_fb);
}