summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorSung W. Park <dunamis.park@samsung.com>2013-10-14 14:33:25 +0900
committerSung W. Park <dunamis.park@samsung.com>2013-10-14 14:37:36 +0900
commit56e71e05bb39b90f71f5bfdedcc8211c542ee176 (patch)
tree51f6b96d198611678f2b95e9c8d07c4d640b9c78 /src/modules
parenta01ba5718d73d5102f3bf602d7799d28c0546c93 (diff)
Evas: EGL-GL backends. Call eglReleaseThread() upon shutdown
Call proper cleanup code upon terminating egl use.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_x11/evas_x_main.c1
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_wl_main.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_x_main.c b/src/modules/evas/engines/gl_x11/evas_x_main.c
index 1b78d4c01b..1a088ab07e 100644
--- a/src/modules/evas/engines/gl_x11/evas_x_main.c
+++ b/src/modules/evas/engines/gl_x11/evas_x_main.c
@@ -437,6 +437,7 @@ eng_window_free(Evas_GL_X11_Window *gw)
437 { 437 {
438 if (context) eglDestroyContext(gw->egl_disp, context); 438 if (context) eglDestroyContext(gw->egl_disp, context);
439 eglTerminate(gw->egl_disp); 439 eglTerminate(gw->egl_disp);
440 eglReleaseThread();
440 context = EGL_NO_CONTEXT; 441 context = EGL_NO_CONTEXT;
441 } 442 }
442#else 443#else
diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
index 7efbb41a42..4c495700aa 100644
--- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c
+++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
@@ -212,6 +212,7 @@ eng_window_free(Evas_GL_Wl_Window *gw)
212 { 212 {
213 if (context) eglDestroyContext(gw->egl_disp, context); 213 if (context) eglDestroyContext(gw->egl_disp, context);
214 eglTerminate(gw->egl_disp); 214 eglTerminate(gw->egl_disp);
215 eglReleaseThread();
215 context = EGL_NO_CONTEXT; 216 context = EGL_NO_CONTEXT;
216 } 217 }
217 218