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".
This commit is contained in:
Cedric BAIL 2014-09-30 16:21:07 +02:00
parent bc6b6aa457
commit 59501027c0
1 changed files with 1 additions and 2 deletions

View File

@ -1065,7 +1065,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,
@ -1081,7 +1081,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);