[Bf-blender-cvs] [f538013] soc-2014-viewport_context: basic EGL types so that glew-es compiles on OSX

Jason Wilkins noreply at git.blender.org
Mon Jul 28 22:38:21 CEST 2014


Commit: f53801306eab9778e05d2f0e358033b9f04b1c2a
Author: Jason Wilkins
Date:   Mon Jul 28 15:32:42 2014 -0500
Branches: soc-2014-viewport_context
https://developer.blender.org/rBf53801306eab9778e05d2f0e358033b9f04b1c2a

basic EGL types so that glew-es compiles on OSX

===================================================================

M	extern/glew-es/include/GL/eglew.h

===================================================================

diff --git a/extern/glew-es/include/GL/eglew.h b/extern/glew-es/include/GL/eglew.h
index c4d22d0..14d4dc4 100644
--- a/extern/glew-es/include/GL/eglew.h
+++ b/extern/glew-es/include/GL/eglew.h
@@ -211,8 +211,12 @@ typedef Display *EGLNativeDisplayType;
 typedef Pixmap   EGLNativePixmapType;
 typedef Window   EGLNativeWindowType;
 
-#else
-#error "Platform not recognized"
+#elif defined(__APPLE__)
+
+typedef void *EGLNativeDisplayType;
+typedef void *EGLNativePixmapType;
+typedef void *EGLNativeWindowType;
+
 #endif
 
 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */




More information about the Bf-blender-cvs mailing list