gl.h: define GLeglImageOES depending on GL_EXT_EGL_image_storage
authorBrian Paul <brianp@vmware.com>
Mon, 6 Aug 2018 15:32:10 +0000 (09:32 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 8 Aug 2018 14:20:01 +0000 (08:20 -0600)
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@freedesktop.org>
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
include/GL/gl.h

index f5bac3670a02a2f2ed98af1cefaea80316913b5a..d4475db362f8dc072c2edc698d4fcb5568d81028 100644 (file)
@@ -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