use gl.h to generate the *.in files. we are now supporting the full gl.h and glext.h apis.
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index 56d5549..6fc0fed 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -143,6 +143,7 @@
static char const * const gl_names[] = {
#include "gl_entries.in"
+ #include "glext_entries.in"
NULL
};
@@ -315,11 +316,6 @@
api = gl_names;
while (*api) {
char const * name = *api;
- // if the function starts with '__' it's a special case that
- // uses a wrapper. skip the '__' when looking into the real lib.
- if (name[0] == '_' && name[1] == '_') {
- name += 2;
- }
__eglMustCastToProperFunctionPointerType f =
(__eglMustCastToProperFunctionPointerType)dlsym(dso, name);
if (f == NULL) {