[Android] Enable OpenGL ES 3 by default. Add in a modified GLES3/gl3.h header for supporting it.

This commit is contained in:
Ryan Houdek
2013-07-13 18:42:04 -05:00
parent 737df2a68c
commit ea146627e6
5 changed files with 1100 additions and 9 deletions
+9 -7
View File
@@ -268,6 +268,15 @@ if(FASTLOG)
add_definitions(-DDEBUGFAST)
endif()
if(ANDROID)
message("Building for Android")
add_definitions(-DANDROID)
set(USE_X11 0)
set(USE_WAYLAND 0)
set(USE_UPNP 0)
set(USE_GLES3 1)
endif()
# For now GLES and EGL are tied to each other.
# Enabling GLES also disables the OpenGL plugin.
if(USE_GLES3)
@@ -301,13 +310,6 @@ else()
endif()
add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE)
if(ANDROID)
message("Building for Android")
add_definitions(-DANDROID)
set(USE_X11 0)
set(USE_WAYLAND 0)
set(USE_UPNP 0)
endif()
########################################
# Dependency checking
#