Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Enable OpenGL ES 3 by default. Add in a modified GLES3/gl3.…
…h header for supporting it.
  • Loading branch information
Sonicadvance1 committed Jul 13, 2013
1 parent 737df2a commit ea14662
Show file tree
Hide file tree
Showing 5 changed files with 1,100 additions and 9 deletions.
16 changes: 9 additions & 7 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down Expand Up @@ -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
#
Expand Down

0 comments on commit ea14662

Please sign in to comment.