]> git.cworth.org Git - apitrace/blobdiff - thirdparty/khronos/EGL/eglplatform.patch
Allow to include EGL on MacOSX.
[apitrace] / thirdparty / khronos / EGL / eglplatform.patch
index 2758d7dd9718a6ced7223d2860c24c42c4d208c3..d35bca3a53797fc19aa5e848c3762ff60777694a 100644 (file)
@@ -2,7 +2,7 @@ diff --git a/thirdparty/khronos/EGL/eglplatform.h b/thirdparty/khronos/EGL/eglpl
 index 6d34ab5..5f30ef1 100644
 --- a/thirdparty/khronos/EGL/eglplatform.h
 +++ b/thirdparty/khronos/EGL/eglplatform.h
-@@ -83,6 +83,16 @@ typedef int   EGLNativeDisplayType;
+@@ -83,6 +83,22 @@ typedef int   EGLNativeDisplayType;
  typedef void *EGLNativeWindowType;
  typedef void *EGLNativePixmapType;
  
@@ -15,6 +15,12 @@ index 6d34ab5..5f30ef1 100644
 +typedef struct ANativeWindow*           EGLNativeWindowType;
 +typedef struct egl_native_pixmap_t*     EGLNativePixmapType;
 +typedef void*                           EGLNativeDisplayType;
++
++#elif defined(__APPLE__)
++
++typedef void *EGLNativeDisplayType;
++typedef void *EGLNativePixmapType;
++typedef void *EGLNativeWindowType;
 +
  #elif defined(__unix__)