X-Git-Url: http://deadsoftware.ru/gitweb?p=nanogl.git;a=blobdiff_plain;f=nanogl.cpp;h=11bd1eac4faf162e8d1bd5e9063deaee398499f1;hp=5add36a367bda8220013657d37844bc3bfb0f861;hb=4f937221b421f3c63856af69e4d620a7f8b0a6b0;hpb=37683dff4a5215ba524bc7eccc22206388051374 diff --git a/nanogl.cpp b/nanogl.cpp index 5add36a..11bd1ea 100644 --- a/nanogl.cpp +++ b/nanogl.cpp @@ -66,12 +66,26 @@ GlESInterface* glEsImpl = NULL; 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);