Kaydet (Commit) d3f63d4b authored tarafından Tor Lillqvist's avatar Tor Lillqvist

No glu.h in OpenGL ES for iOS

Change-Id: Ie0eb1f68d997c4f2bd37c9d7c2ff6feccbc7b8ce
üst 65b27f8d
...@@ -15,6 +15,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,glew,0)) ...@@ -15,6 +15,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,glew,0))
$(eval $(call gb_UnpackedTarball_fix_end_of_line,glew,\ $(eval $(call gb_UnpackedTarball_fix_end_of_line,glew,\
Makefile \ Makefile \
include/GL/glew.h \
)) ))
ifeq ($(OS)$(COM),WNTMSC) ifeq ($(OS)$(COM),WNTMSC)
...@@ -35,6 +36,12 @@ $(eval $(call gb_UnpackedTarball_add_patches,glew,\ ...@@ -35,6 +36,12 @@ $(eval $(call gb_UnpackedTarball_add_patches,glew,\
)) ))
endif endif
ifeq ($(OS),IOS)
$(eval $(call gb_UnpackedTarball_add_patches,glew,\
external/glew/glew-ios.patch.1 \
))
endif
ifeq ($(DISABLE_DYNLOADING),TRUE) ifeq ($(DISABLE_DYNLOADING),TRUE)
$(eval $(call gb_UnpackedTarball_add_patches,glew,\ $(eval $(call gb_UnpackedTarball_add_patches,glew,\
external/glew/glew-static-only.patch.1 \ external/glew/glew-static-only.patch.1 \
......
-*- Mode:Diff -*-
--- glew/include/GL/glew.h
+++ glew/include/GL/glew.h
@@ -1180,6 +1180,10 @@
/* ---------------------------------- GLU ---------------------------------- */
+#if !defined(GLEW_NO_GLU) && defined(__APPLE__) && defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
+#define GLEW_NO_GLU
+#endif
+
#ifndef GLEW_NO_GLU
/* this is where we can safely include GLU */
# if defined(__APPLE__) && defined(__MACH__)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment