From dee5f9a096ad39bb2bfe9fcae21d8323dd256ad0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 10 Jan 2012 21:07:09 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/Android.mk b/Android.mk index bc3287437..c80e84279 100755 --- a/Android.mk +++ b/Android.mk @@ -40,6 +40,7 @@ LOCAL_SRC_FILES := \ $(wildcard $(LOCAL_PATH)/src/video/*.c) \ $(wildcard $(LOCAL_PATH)/src/video/android/*.c)) +LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog include $(BUILD_SHARED_LIBRARY)