add new win before deleting old.

SVN revision: 50584
This commit is contained in:
Carsten Haitzler 2010-07-28 06:00:02 +00:00
parent e248c8b6fc
commit 1154cf402c
1 changed files with 7 additions and 5 deletions

View File

@ -325,11 +325,8 @@ eng_setup(Evas *e, void *in)
(info->info.destination_alpha != re->win->alpha) ||
(info->info.rotation != re->win->rot))
{
if (re->win)
{
eng_window_free(re->win);
gl_wins--;
}
Evas_GL_X11_Window *oldwin = re->win;
re->win = eng_window_new(info->info.display,
info->info.drawable,
info->info.screen,
@ -342,6 +339,11 @@ eng_setup(Evas *e, void *in)
info->info.destination_alpha,
info->info.rotation);
if (re->win) gl_wins++;
if (oldwin)
{
eng_window_free(oldwin);
gl_wins--;
}
}
else if ((re->win->w != e->output.w) ||
(re->win->h != e->output.h))