diff options
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_x11/evas_x_main.c')
-rw-r--r-- | libraries/evas/src/modules/engines/gl_x11/evas_x_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/evas/src/modules/engines/gl_x11/evas_x_main.c b/libraries/evas/src/modules/engines/gl_x11/evas_x_main.c index 323c976..c29ab67 100644 --- a/libraries/evas/src/modules/engines/gl_x11/evas_x_main.c +++ b/libraries/evas/src/modules/engines/gl_x11/evas_x_main.c | |||
@@ -531,13 +531,13 @@ eng_window_free(Evas_GL_X11_Window *gw) | |||
531 | #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) | 531 | #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) |
532 | if (gw->egl_surface[0] != EGL_NO_SURFACE) | 532 | if (gw->egl_surface[0] != EGL_NO_SURFACE) |
533 | eglDestroySurface(gw->egl_disp, gw->egl_surface[0]); | 533 | eglDestroySurface(gw->egl_disp, gw->egl_surface[0]); |
534 | eglMakeCurrent(gw->egl_disp, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); | ||
534 | if (ref == 0) | 535 | if (ref == 0) |
535 | { | 536 | { |
536 | if (context) eglDestroyContext(gw->egl_disp, context); | 537 | if (context) eglDestroyContext(gw->egl_disp, context); |
537 | eglTerminate(gw->egl_disp); | 538 | eglTerminate(gw->egl_disp); |
538 | context = EGL_NO_CONTEXT; | 539 | context = EGL_NO_CONTEXT; |
539 | } | 540 | } |
540 | eglMakeCurrent(gw->egl_disp, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); | ||
541 | #else | 541 | #else |
542 | if (gw->glxwin) glXDestroyWindow(gw->disp, gw->glxwin); | 542 | if (gw->glxwin) glXDestroyWindow(gw->disp, gw->glxwin); |
543 | if (ref == 0) | 543 | if (ref == 0) |