Skip to content
Browse files

Add possibility to choose custom GLESv2 and some handy debugging of G…

…LES2 calls if uncommented

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
  • Loading branch information...
1 parent d10011a commit 005ef68a25eeb5d787fb8fde90b53566aa0bf59b Carsten Munk committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 glesv2/glesv2.c
View
4 glesv2/glesv2.c
@@ -168,10 +168,10 @@ static void (*_glViewport)(GLint x, GLint y, GLsizei width, GLsizei heig
static void _init_androidglesv2()
{
- _libglesv2 = (void *) android_dlopen("/system/lib/libGLESv2.so", RTLD_LAZY);
+ _libglesv2 = (void *) android_dlopen(getenv("LIBGLESV2") ? getenv("libGLESv2") : "/system/lib/libGLESv2.so", RTLD_LAZY);
}
-#define GLES2_DLSYM(sym) do { if (_libglesv2 == NULL) { _init_androidglesv2(); }; if (*(_ ## sym) == NULL) { *(&_ ## sym) = (void *) android_dlsym(_libglesv2, #sym); } } while (0)
+#define GLES2_DLSYM(sym) do { /* printf("%i: %s()\n", getpid(), #sym); */ if (_libglesv2 == NULL) { _init_androidglesv2(); }; if (*(_ ## sym) == NULL) { *(&_ ## sym) = (void *) android_dlsym(_libglesv2, #sym); } } while (0)
void glActiveTexture (GLenum texture)
{

0 comments on commit 005ef68

Please sign in to comment.
Something went wrong with that request. Please try again.