use before freeing to make sure context is right

SVN revision: 49781
This commit is contained in:
Carsten Haitzler 2010-06-21 07:59:46 +00:00
parent 61753a99a6
commit 7f99f93744
1 changed files with 1 additions and 0 deletions

View File

@ -395,6 +395,7 @@ void
eng_window_free(Evas_GL_X11_Window *gw)
{
win_count--;
eng_window_use(gw);
if (gw == _evas_gl_x11_window) _evas_gl_x11_window = NULL;
if (gw->gl_context) evas_gl_common_context_free(gw->gl_context);
#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)