mesa_glinterop: remove inclusion of EGL header
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 3 May 2016 11:25:53 +0000 (12:25 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 May 2016 22:03:00 +0000 (23:03 +0100)
Analogous to previous commit, but for EGL.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
include/GL/mesa_glinterop.h

index b76bd7ec2f509f2863b8f642a79f937f6571772b..5c172c6ca9eb653bb7fbf2c881cc210e06df8273 100644 (file)
@@ -51,7 +51,7 @@
 #define MESA_GLINTEROP_H
 
 #include <stddef.h>
-#include <EGL/egl.h>
+#include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -61,6 +61,10 @@ extern "C" {
 typedef struct _XDisplay Display;
 typedef struct __GLXcontextRec *GLXContext;
 
+/* Forward declarations to avoid inclusion of EGL/egl.h */
+typedef void *EGLDisplay;
+typedef void *EGLContext;
+
 /** Returned error codes. */
 enum {
    MESA_GLINTEROP_SUCCESS = 0,