David Carre cpasjuste@gmail.com
authorSam Lantinga <slouken@libsdl.org>
Tue, 10 Jan 2012 21:07:09 -0500
changeset 6208291fea716f09
parent 6207 15ff38383cb7
child 6210 a598b3abd962
David Carre cpasjuste@gmail.com

I'm playing with SDL on android, and did notice a problem in latest sources ( branch "default" ) :

SDL/src/render/opengles/SDL_glesfuncs.h:10: error: 'glDrawTexiOES' undeclared (first use in this function)
SDL/src/render/opengles/SDL_glesfuncs.h:10: error: (Each undeclared identifier is reported only once

If it can help you win some time here is the fix, applied to the "Android.mk" file :

LOCAL_CFLAGS += -D GL_GLEXT_PROTOTYPES
Android.mk
     1.1 --- a/Android.mk	Tue Jan 10 21:00:47 2012 -0500
     1.2 +++ b/Android.mk	Tue Jan 10 21:07:09 2012 -0500
     1.3 @@ -40,6 +40,7 @@
     1.4  	$(wildcard $(LOCAL_PATH)/src/video/*.c) \
     1.5  	$(wildcard $(LOCAL_PATH)/src/video/android/*.c))
     1.6  
     1.7 +LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
     1.8  LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog
     1.9  
    1.10  include $(BUILD_SHARED_LIBRARY)