diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2014-09-30 16:21:07 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2014-09-30 16:28:58 +0200 |
commit | c43ff3cf3143519651acf231588ea39fdee65cfc (patch) | |
tree | 1a655a3bd40168c84fbe71f6bda9c6dc411535bc | |
parent | bc72864517561cb60638bd61b5677687ef24effb (diff) | |
download | efl-c43ff3cf3143519651acf231588ea39fdee65cfc.tar.gz |
evas: fix gl_context to correctly match window description after a change.
This was affecting use of GL backend when having a transparent window. It
is actually a fix for a bug reported by Thanatermesis. It has been inspired
by D1229.
To reproduce the issue just do ELM_ACCEL=gl elementary_test -to "Icon transparent".
-rw-r--r-- | src/modules/evas/engines/gl_x11/evas_engine.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c index 12c3490064..a37c24b361 100644 --- a/src/modules/evas/engines/gl_x11/evas_engine.c +++ b/src/modules/evas/engines/gl_x11/evas_engine.c @@ -1064,7 +1064,7 @@ eng_setup(Evas *eo_e, void *in) { Outbuf *ob; - eng_get_ob(re)->gl_context->references++; + eng_window_free(eng_get_ob(re)); gl_wins--; ob = eng_window_new(info, eo_e, @@ -1080,7 +1080,6 @@ eng_setup(Evas *eo_e, void *in) eng_get_ob(re)->info->info.rotation, swap_mode); - eng_window_free(eng_get_ob(re)); re->generic.software.ob = NULL; eng_window_use(ob); |