summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_egl/evas_engine.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:47:52 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:47:52 -0700
commit8ffc0f2b9e2370d2893fcd6ef5309da4d53ebfda (patch)
treee6ccf23d949b5eb8a431fa8450e84937217e1b1b /src/modules/evas/engines/wayland_egl/evas_engine.c
parent600a5fa76cf8fe5f324f9a0bd962c6aa5ab84f53 (diff)
evas: prevent double tilebuf creation/destruction during window resize.
Diffstat (limited to 'src/modules/evas/engines/wayland_egl/evas_engine.c')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 25b7d67..0c183ba 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -722,8 +722,6 @@ eng_update(void *engine EINA_UNUSED, void *data, void *info, unsigned int w, uns
722 722
723 eng_window_use(ob); 723 eng_window_use(ob);
724 724
725 evas_render_engine_software_generic_update(&re->generic.software,
726 ob, w, h);
727 gl_wins++; 725 gl_wins++;
728 } 726 }
729 else if ((ob->w != (int)w) || (ob->h != (int)h) || 727 else if ((ob->w != (int)w) || (ob->h != (int)h) ||
@@ -736,18 +734,8 @@ eng_update(void *engine EINA_UNUSED, void *data, void *info, unsigned int w, uns
736 734
737 if (!eng_get_ob(re)) goto ob_err; 735 if (!eng_get_ob(re)) goto ob_err;
738 736
739 if (re->generic.software.tb) 737 evas_render_engine_software_generic_update(&re->generic.software,
740 evas_common_tilebuf_free(re->generic.software.tb); 738 ob, w, h);
741 re->generic.software.tb = evas_common_tilebuf_new(w, h);
742
743 if (re->generic.software.tb)
744 {
745 evas_common_tilebuf_set_tile_size(re->generic.software.tb,
746 TILESIZE, TILESIZE);
747 evas_render_engine_software_generic_tile_strict_set
748 (&re->generic.software, EINA_TRUE);
749 }
750
751 eng_window_use(eng_get_ob(re)); 739 eng_window_use(eng_get_ob(re));
752 740
753 return 1; 741 return 1;