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 795a023979b8675c337cfd69ea4ff0e831056aea..e623a8bf355e2c5c55a2a5df58b4948b9737d81d 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 9a721907eee80d1df631b1da26575abd6fd158a6..b79e04874518b3e549580481898c7886b844130d 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 0a37f30106102030f3764a15b4be4577f1011ec2..73c7fa711aaf378feeaa4243d97d3aefa0a1a2fa 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>