Mesa (master): gl.h: define GLeglImageOES depending on GL_EXT_EGL_image_storage
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 8 15:39:40 UTC 2018
Module: Mesa
Branch: master
Commit: 6ff4795c622762d6498c73b407070f9c6157878e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ff4795c622762d6498c73b407070f9c6157878e
Author: Brian Paul <brianp at vmware.com>
Date: Mon Aug 6 09:32:10 2018 -0600
gl.h: define GLeglImageOES depending on GL_EXT_EGL_image_storage
To avoid duplicate typedef with the definition in glext.h
V2: test for both GL_OES_EGL_image and GL_EXT_EGL_image_storage in
case both the GL and GLES headers are included. Per Emil.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107488
Tested-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Mathias Fröhlich <mathias.froehlich at web.de>
---
include/GL/gl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/GL/gl.h b/include/GL/gl.h
index f5bac3670a..d4475db362 100644
--- a/include/GL/gl.h
+++ b/include/GL/gl.h
@@ -2086,7 +2086,7 @@ typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLen
/* GL_OES_EGL_image */
-#ifndef GL_OES_EGL_image
+#if !defined(GL_OES_EGL_image) && !defined(GL_EXT_EGL_image_storage)
typedef void* GLeglImageOES;
#endif
More information about the mesa-commit
mailing list