summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_GL.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-07-13 13:51:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-07-16 19:50:38 +0900
commit576f2ccab7d3f83cff00d08c6610f3fd97375f1d (patch)
tree7993770482653bcfd6444686e437815f7081b718 /src/lib/evas/Evas_GL.h
parent028cf2c9a4e5b4ed7fda838add57616ae4584350 (diff)
Evas GL: Fix evasglImageDestroy() from non-evasgl threads
If the TLS variable was not initialized, Evas GL can't get a pointer to a valid EGLDisplay which is required by eglImageDestroy. So, we keep track of the dpy used at creation time and use that if we're in another thread.
Diffstat (limited to 'src/lib/evas/Evas_GL.h')
-rw-r--r--src/lib/evas/Evas_GL.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_GL.h b/src/lib/evas/Evas_GL.h
index 255ccfccec..f25cd50bf9 100644
--- a/src/lib/evas/Evas_GL.h
+++ b/src/lib/evas/Evas_GL.h
@@ -4143,6 +4143,9 @@ struct _Evas_GL_API
4143 * Destroy an image created by either @ref evasglCreateImage or @ref evasglCreateImageForContext. 4143 * Destroy an image created by either @ref evasglCreateImage or @ref evasglCreateImageForContext.
4144 * 4144 *
4145 * Requires the @c EVAS_GL_image extension. 4145 * Requires the @c EVAS_GL_image extension.
4146 *
4147 * @note Unlike in pure EGL, the display pointer needs not be passed in, as
4148 * Evas GL will use the same EGLDisplay as used in the create function.
4146 */ 4149 */
4147 void (*evasglDestroyImage) (EvasGLImage image); 4150 void (*evasglDestroyImage) (EvasGLImage image);
4148 4151