Fix the GL build issues on Mountion Lion
authorJun Tian <jun.j.tian@intel.com>
Wed, 21 Nov 2012 08:17:12 +0000 (16:17 +0800)
committerJun Tian <jun.j.tian@intel.com>
Wed, 21 Nov 2012 09:09:26 +0000 (17:09 +0800)
The GL path of the Mountain Lion is different. Including the gl.h path in this patch.

Signed-off-by: Gao Fengqian <fengqian.gao@intel.com>
tizen/emulator_configure.sh
tizen/src/hw/gloffscreen_common.c
tizen/src/hw/gloffscreen_test.c

index 795a023..e623a8b 100755 (executable)
@@ -280,7 +280,7 @@ echo "##### QEMU configure append:" $CONFIGURE_APPEND
  --enable-hax \
  --disable-vnc \
  --enable-cocoa \
- --disable-gl \
+ --enable-gl \
  --disable-sdl $1
 ;;
 esac
index 9a72190..b79e048 100644 (file)
@@ -30,6 +30,8 @@
 #include <windows.h>
 #include <GL/gl.h>
 #include <GL/glext.h>
+#elif __APPLE__
+#include <OpenGL/gl.h>
 #else
 #include <GL/gl.h>
 #endif
index 0a37f30..73c7fa7 100644 (file)
@@ -34,6 +34,9 @@
 #include <windows.h>
 #include <GL/gl.h>
 #include <GL/glext.h>
+#elif __APPLE__
+#include <OpenGL/gl.h>
+#include <sys/time.h>
 #else
 #include <GL/gl.h>
 #include <sys/time.h>