diff --git a/nanogl.cpp b/nanogl.cpp
index 5add36a367bda8220013657d37844bc3bfb0f861..11bd1eac4faf162e8d1bd5e9063deaee398499f1 100644 (file)
--- a/nanogl.cpp
+++ b/nanogl.cpp
extern void InitGLStructs();
-static void gl_unimplemented() {
+void gl_unimplemented() {
LOGE ("Called unimplemented OpenGL ES API\n");
}
void *nanoGL_GetProcAddress(const char *name)
{
+#if defined(__MULTITEXTURE_SUPPORT__)
+ if (!strcmp(procname, "glMultiTexCoord2fARB"))
+ {
+ return (void*)&glMultiTexCoord2fARB;
+ }
+ else if (!strcmp(procname, "glActiveTextureARB"))
+ {
+ return (void*)&glActiveTexture;
+ }
+ else if (!strcmp(procname, "glClientActiveTextureARB"))
+ {
+ return (void*)&glClientActiveTexture;
+ }
+#endif
return dlsym(glesLib, name);
}
@@ -113,8 +127,11 @@ static int CreateGlEsInterface( const char * name, void * lib, void * lib1, void
LOGD ("<%s> @ 0x%p\n", *api, f);
}
}
- else
+ else
+ {
+ LOGE ( "libEGL.so not loaded!");
f = default_func;
+ }
}
else {
LOGD ("<%s> @ 0x%p\n", *api, f);