UseGlshim option renamed to UseGl4es
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
APP_MODULES := application sdl-1.2 sdl_main sdl_native_helpers jpeg png ogg flac vorbis freetype tremor ogg
|
||||
|
||||
# To filter out static libs from all libs in makefile
|
||||
APP_AVAILABLE_STATIC_LIBS := jpeg png tremor freetype xerces ogg tremor vorbis flac boost_date_time boost_filesystem boost_iostreams boost_program_options boost_regex boost_signals boost_system boost_thread boost_locale glu icudata icutest icui18n icuio icule iculx icutu icuuc sdl_savepng android_support glshim nanogl
|
||||
APP_AVAILABLE_STATIC_LIBS := jpeg png tremor freetype xerces ogg tremor vorbis flac boost_date_time boost_filesystem boost_iostreams boost_program_options boost_regex boost_signals boost_system boost_thread boost_locale glu icudata icutest icui18n icuio icule iculx icutu icuuc sdl_savepng android_support gl4es nanogl
|
||||
|
||||
APP_ABI := armeabi
|
||||
|
||||
@@ -46,7 +46,7 @@ APPLICATION_BUILD_EXCLUDE :=
|
||||
|
||||
APPLICATION_CUSTOM_BUILD_SCRIPT :=
|
||||
|
||||
USE_GLSHIM :=
|
||||
USE_GL4ES :=
|
||||
|
||||
SDL_ADDITIONAL_CFLAGS := -DSDL_ANDROID_KEYCODE_MOUSE=UNKNOWN -DSDL_ANDROID_KEYCODE_0=LCTRL -DSDL_ANDROID_KEYCODE_1=LALT -DSDL_ANDROID_KEYCODE_2=SPACE -DSDL_ANDROID_KEYCODE_3=RETURN -DSDL_ANDROID_KEYCODE_4=RETURN
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ LOCAL_SRC_FILES := $(foreach F, $(SDL_SRCS), $(addprefix $(dir $(F)),$(notdir $(
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := sdl_native_helpers # Not really a dependency, needed for CustomBuildScript
|
||||
|
||||
ifdef USE_GLSHIM
|
||||
LOCAL_STATIC_LIBRARIES := glshim
|
||||
ifdef USE_GL4ES
|
||||
LOCAL_STATIC_LIBRARIES := gl4es
|
||||
endif
|
||||
|
||||
LOCAL_LDLIBS := $(APPLICATION_GLES_LIBRARY) -ldl -llog
|
||||
|
||||
@@ -61,7 +61,7 @@ If you compile this code with SDL 1.3 or newer, or use in some other way, the li
|
||||
|
||||
#include "SDL_opengles.h"
|
||||
|
||||
#ifdef USE_GLSHIM
|
||||
#ifdef USE_GL4ES
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
|
||||
@@ -1253,7 +1253,7 @@ void SDL_ANDROID_VideoContextRecreated()
|
||||
|
||||
static void* ANDROID_GL_GetProcAddress(_THIS, const char *proc)
|
||||
{
|
||||
#ifdef USE_GLSHIM
|
||||
#ifdef USE_GL4ES
|
||||
void * func = glXGetProcAddress(proc);
|
||||
#else
|
||||
void * func = dlsym(glLibraryHandle, proc);
|
||||
|
||||
Reference in New Issue
Block a user