Improved GLES2 support.

Fixed VBOs for GLES2.
Fixed a bug in texture size calculation.
This commit is contained in:
Martín Lucas Golini
2013-05-25 04:20:16 -03:00
parent c68b9c75f4
commit e64cfe07d3
8 changed files with 123 additions and 126 deletions

View File

@@ -1,12 +1,12 @@
APP_PROJECT_PATH := $(call my-dir)/..
#EE_GLES_VERSION := -DEE_GLES2 -DSOIL_GLES2 -DSDL_GLES2
#EE_GLES_LINK := -lGLESv2
EE_SDL_VERSION := EE_SDL_VERSION_2
EE_GLES_VERSION := -DEE_GLES1 -DSOIL_GLES1 -DSDL_GLES1
EE_GLES_LINK := -lGLESv1_CM
#EE_GLES_VERSION := -DEE_GLES1 -DSOIL_GLES1 -DSDL_GLES1
#EE_GLES_LINK := -lGLESv1_CM
EE_GLES_VERSION := -DEE_GLES2 -DSOIL_GLES2 -DSDL_GLES2
EE_GLES_LINK := -lGLESv2
APP_STL := stlport_static
@@ -14,11 +14,11 @@ APP_LDLIBS := -llog $(EE_GLES_LINK) -lm -lz -lOpenSLES
#Debug Build
# arm-linux-androideabi-4.4.3 crashes in -O0 mode on SDL sources
APP_CFLAGS := -g -DDEBUG -DEE_DEBUG -DEE_MEMORY_MANAGER
APP_OPTIM :=debug
#APP_CFLAGS := -g -DDEBUG -DEE_DEBUG -DEE_MEMORY_MANAGER
#APP_OPTIM :=debug
#Release Build
#APP_CFLAGS := -fno-strict-aliasing -O3 -s -DNDEBUG -ffast-math
APP_CFLAGS := -fno-strict-aliasing -O3 -s -DNDEBUG -ffast-math
APP_PLATFORM := android-9
APP_MODULES := main