[Xquartz-changes] mesa: Branch 'master' - 14 commits

Jeremy Huddleston jeremyhu at freedesktop.org
Sun Jun 12 11:24:23 PDT 2011


Rebased ref, commits from common ancestor:
commit 16e30276e843b6f788aee75547136ea24e4a4248
Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date:   Sat Jun 11 23:00:40 2011 +0200

    egl_dri2: Compare configs before matching them
    
    This compares attribs like buffer size, and will prevent merging
    unequal configs because of match criterion is e.g. ATLEAST.

diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index a943005..3d5827e 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -97,6 +97,18 @@ EGLint dri2_to_egl_attribute_map[] = {
    0,				/* __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE */
 };
 
+static EGLBoolean
+dri2_match_config(const _EGLConfig *conf, const _EGLConfig *criteria)
+{
+   if (_eglCompareConfigs(conf, criteria, NULL, EGL_FALSE) != 0)
+      return EGL_FALSE;
+
+   if (!_eglMatchConfig(conf, criteria))
+      return EGL_FALSE;
+
+   return EGL_TRUE;
+}
+
 struct dri2_egl_config *
 dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
 		int depth, EGLint surface_type, const EGLint *attr_list)
@@ -190,7 +202,7 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
    base.ConfigID    = EGL_DONT_CARE;
    base.SurfaceType = EGL_DONT_CARE;
    num_configs = _eglFilterArray(disp->Configs, (void **) &matching_config, 1,
-                                 (_EGLArrayForEach) _eglMatchConfig, &base);
+                                 (_EGLArrayForEach) dri2_match_config, &base);
 
    if (num_configs == 1) {
       conf = (struct dri2_egl_config *) matching_config;
commit a23bf646bdeb72381e7f2bc784d47748cdd7d1ce
Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date:   Sat Jun 11 22:24:14 2011 +0200

    st/eglwayland: Add support for EGL_DEFAULT_DISPLAY

diff --git a/src/gallium/state_trackers/egl/wayland/native_drm.c b/src/gallium/state_trackers/egl/wayland/native_drm.c
index 15383e8..a9fd303 100644
--- a/src/gallium/state_trackers/egl/wayland/native_drm.c
+++ b/src/gallium/state_trackers/egl/wayland/native_drm.c
@@ -98,6 +98,8 @@ wayland_drm_display_destroy(struct native_display *ndpy)
       FREE(drmdpy->device_name);
    if (drmdpy->base.config)
       FREE(drmdpy->base.config);
+   if (drmdpy->base.own_dpy)
+      wl_display_destroy(drmdpy->base.dpy);
 
    ndpy_uninit(ndpy);
 
diff --git a/src/gallium/state_trackers/egl/wayland/native_shm.c b/src/gallium/state_trackers/egl/wayland/native_shm.c
index 609fc0c..8614a76 100644
--- a/src/gallium/state_trackers/egl/wayland/native_shm.c
+++ b/src/gallium/state_trackers/egl/wayland/native_shm.c
@@ -65,6 +65,8 @@ wayland_shm_display_destroy(struct native_display *ndpy)
 
    if (shmdpy->base.config)
       FREE(shmdpy->base.config);
+   if (shmdpy->base.own_dpy)
+      wl_display_destroy(shmdpy->base.dpy);
 
    ndpy_uninit(ndpy);
 
diff --git a/src/gallium/state_trackers/egl/wayland/native_wayland.c b/src/gallium/state_trackers/egl/wayland/native_wayland.c
index 0292d56..3d1bb6f 100644
--- a/src/gallium/state_trackers/egl/wayland/native_wayland.c
+++ b/src/gallium/state_trackers/egl/wayland/native_wayland.c
@@ -459,9 +459,17 @@ static struct native_display *
 native_create_display(void *dpy, boolean use_sw, void *user_data)
 {
    struct wayland_display *display = NULL;
+   boolean own_dpy = FALSE;
 
    use_sw = use_sw || debug_get_bool_option("EGL_SOFTWARE", FALSE);
 
+   if (dpy == NULL) {
+      dpy = wl_display_connect(NULL);
+      if (dpy == NULL)
+         return NULL;
+      own_dpy = TRUE;
+   }
+
    if (use_sw) {
       _eglLog(_EGL_INFO, "use software fallback");
       display = wayland_create_shm_display((struct wl_display *) dpy,
@@ -482,6 +490,8 @@ native_create_display(void *dpy, boolean use_sw, void *user_data)
    display->base.create_window_surface = wayland_create_window_surface;
    display->base.create_pixmap_surface = wayland_create_pixmap_surface;
 
+   display->own_dpy = own_dpy;
+
    return &display->base;
 }
 
diff --git a/src/gallium/state_trackers/egl/wayland/native_wayland.h b/src/gallium/state_trackers/egl/wayland/native_wayland.h
index e69a8f0..81c7a8b 100644
--- a/src/gallium/state_trackers/egl/wayland/native_wayland.h
+++ b/src/gallium/state_trackers/egl/wayland/native_wayland.h
@@ -41,6 +41,7 @@ struct wayland_display {
 
    struct wayland_config *config;
    struct wl_display *dpy;
+   boolean own_dpy;
 
    struct wl_buffer *(*create_buffer)(struct wayland_display *display,
                                       struct wayland_surface *surface,
commit b8325fd2554aafde3d0b784b7944b1473af7d144
Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date:   Sat Jun 11 22:07:02 2011 +0200

    egl_dri2/wayland: Add support for EGL_DEFAULT_DISPLAY

diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index ea8c8fb..a943005 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -528,10 +528,24 @@ dri2_terminate(_EGLDriver *drv, _EGLDisplay *disp)
    if (dri2_dpy->fd)
       close(dri2_dpy->fd);
    dlclose(dri2_dpy->driver);
+
+   if (disp->PlatformDisplay == NULL) {
+      switch (disp->Platform) {
 #ifdef HAVE_X11_PLATFORM
-   if (disp->PlatformDisplay == NULL)
-      xcb_disconnect(dri2_dpy->conn);
+      case _EGL_PLATFORM_X11:
+         xcb_disconnect(dri2_dpy->conn);
+         break;
+#endif
+#ifdef HAVE_WAYLAND_PLATFORM
+      case _EGL_PLATFORM_WAYLAND:
+         wl_display_destroy(dri2_dpy->wl_dpy);
+         break;
 #endif
+      default:
+         break;
+      }
+   }
+
    free(dri2_dpy);
    disp->DriverData = NULL;
 
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index 1d6ce2e..e786780 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -676,7 +676,13 @@ dri2_initialize_wayland(_EGLDriver *drv, _EGLDisplay *disp)
    memset(dri2_dpy, 0, sizeof *dri2_dpy);
 
    disp->DriverData = (void *) dri2_dpy;
-   dri2_dpy->wl_dpy = disp->PlatformDisplay;
+   if (disp->PlatformDisplay == NULL) {
+      dri2_dpy->wl_dpy = wl_display_connect(NULL);
+      if (dri2_dpy->wl_dpy == NULL)
+         goto cleanup_dpy;
+   } else {
+      dri2_dpy->wl_dpy = disp->PlatformDisplay;
+   }
 
    id = wl_display_get_global(dri2_dpy->wl_dpy, "wl_drm", 1);
    if (id == 0)
commit 9a00dd974699e369b1eb292103fbde8bc6adfb87
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Sat Jun 11 23:43:38 2011 -0700

    apple: Request OpenGL 3.2 from OpenGL.framework if available
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c
index 5a7fc32..a246164 100644
--- a/src/glx/apple/apple_visual.c
+++ b/src/glx/apple/apple_visual.c
@@ -40,10 +40,19 @@
 #include <OpenGL/OpenGL.h>
 #include <OpenGL/CGLContext.h>
 #include <OpenGL/CGLRenderers.h>
+#include <OpenGL/CGLTypes.h>
 #undef glTexImage1D
 #undef glTexImage2D
 #undef glTexImage3D
 
+#ifndef kCGLPFAOpenGLProfile
+#define kCGLPFAOpenGLProfile 99
+#endif
+
+#ifndef kCGLOGLPVersion_3_2_Core
+#define kCGLOGLPVersion_3_2_Core 0x3200
+#endif
+
 #include "apple_cgl.h"
 #include "apple_visual.h"
 #include "apple_glx.h"
@@ -64,6 +73,12 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m
    GLint vsref = 0;
    CGLError error = 0;
 
+   /* Request an OpenGL 3.2 profile if one is available */
+   if(apple_cgl.version_major > 1 || (apple_cgl.version_major == 1 && apple_cgl.version_minor >= 3)) {
+      attr[numattr++] = kCGLPFAOpenGLProfile;
+      attr[numattr++] = kCGLOGLPVersion_3_2_Core;
+   }
+
    if (offscreen) {
       apple_glx_diagnostic
          ("offscreen rendering enabled.  Using kCGLPFAOffScreen\n");
commit df1dacf093058e74ec102d8828d2751a9ed6e34e
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Sat Jun 11 23:43:03 2011 -0700

    apple: Store the CGL API version number for future reference
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/src/glx/apple/apple_cgl.c b/src/glx/apple/apple_cgl.c
index 737d757..648ed86 100644
--- a/src/glx/apple/apple_cgl.c
+++ b/src/glx/apple/apple_cgl.c
@@ -64,7 +64,6 @@ void
 apple_cgl_init(void)
 {
    void *h;
-   GLint major = 0, minor = 0;
    const char *opengl_framework_path;
 
    if (initialized)
@@ -88,11 +87,11 @@ apple_cgl_init(void)
 
    apple_cgl.get_version = sym(h, "CGLGetVersion");
 
-   apple_cgl.get_version(&major, &minor);
+   apple_cgl.get_version(&apple_cgl.version_major, &apple_cgl.version_minor);
 
-   apple_glx_diagnostic("CGL major %d minor %d\n", major, minor);
+   apple_glx_diagnostic("CGL major %d minor %d\n", apple_cgl.version_major, apple_cgl.version_minor);
 
-   if (1 != major) {
+   if (1 != apple_cgl.version_major) {
       fprintf(stderr, "WARNING: the CGL major version has changed!\n"
               "libGL may be incompatible!\n");
    }
diff --git a/src/glx/apple/apple_cgl.h b/src/glx/apple/apple_cgl.h
index 5e98a00..002c7e6 100644
--- a/src/glx/apple/apple_cgl.h
+++ b/src/glx/apple/apple_cgl.h
@@ -40,7 +40,8 @@
 
 struct apple_cgl_api
 {
-   void (*get_version) (GLint * majorvers, GLint * minorvers);
+     GLint version_major, version_minor;
+     void (*get_version) (GLint * version_major, GLint * version_minor);
 
      CGLError(*choose_pixel_format) (const CGLPixelFormatAttribute * attribs,
                                      CGLPixelFormatObj * pix, GLint * npix);
commit 02b6e97c75bf2e013064e789b70704c6376e0628
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Sat Jun 11 22:54:59 2011 -0700

    apple: Use a struct glx_config * rather than a void * in apple_visual_create_pfobj
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c
index 29c6f16..5a7fc32 100644
--- a/src/glx/apple/apple_visual.c
+++ b/src/glx/apple/apple_visual.c
@@ -54,14 +54,12 @@ enum
    MAX_ATTR = 60
 };
 
-/*mode is a __GlcontextModes*/
 void
-apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const void *mode,
+apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * mode,
                           bool * double_buffered, bool * uses_stereo,
                           bool offscreen)
 {
    CGLPixelFormatAttribute attr[MAX_ATTR];
-   const struct glx_config *c = mode;
    int numattr = 0;
    GLint vsref = 0;
    CGLError error = 0;
@@ -95,7 +93,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const void *mode,
     */
    attr[numattr++] = kCGLPFAClosestPolicy;
 
-   if (c->stereoMode) {
+   if (mode->stereoMode) {
       attr[numattr++] = kCGLPFAStereo;
       *uses_stereo = true;
    }
@@ -103,7 +101,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const void *mode,
       *uses_stereo = false;
    }
 
-   if (c->doubleBufferMode) {
+   if (mode->doubleBufferMode) {
       attr[numattr++] = kCGLPFADoubleBuffer;
       *double_buffered = true;
    }
@@ -112,32 +110,32 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const void *mode,
    }
 
    attr[numattr++] = kCGLPFAColorSize;
-   attr[numattr++] = c->redBits + c->greenBits + c->blueBits;
+   attr[numattr++] = mode->redBits + mode->greenBits + mode->blueBits;
    attr[numattr++] = kCGLPFAAlphaSize;
-   attr[numattr++] = c->alphaBits;
+   attr[numattr++] = mode->alphaBits;
 
-   if ((c->accumRedBits + c->accumGreenBits + c->accumBlueBits) > 0) {
+   if ((mode->accumRedBits + mode->accumGreenBits + mode->accumBlueBits) > 0) {
       attr[numattr++] = kCGLPFAAccumSize;
-      attr[numattr++] = c->accumRedBits + c->accumGreenBits +
-         c->accumBlueBits + c->accumAlphaBits;
+      attr[numattr++] = mode->accumRedBits + mode->accumGreenBits +
+         mode->accumBlueBits + mode->accumAlphaBits;
    }
 
-   if (c->depthBits > 0) {
+   if (mode->depthBits > 0) {
       attr[numattr++] = kCGLPFADepthSize;
-      attr[numattr++] = c->depthBits;
+      attr[numattr++] = mode->depthBits;
    }
 
-   if (c->stencilBits > 0) {
+   if (mode->stencilBits > 0) {
       attr[numattr++] = kCGLPFAStencilSize;
-      attr[numattr++] = c->stencilBits;
+      attr[numattr++] = mode->stencilBits;
    }
 
-   if (c->sampleBuffers > 0) {
+   if (mode->sampleBuffers > 0) {
       attr[numattr++] = kCGLPFAMultisample;
       attr[numattr++] = kCGLPFASampleBuffers;
-      attr[numattr++] = c->sampleBuffers;
+      attr[numattr++] = mode->sampleBuffers;
       attr[numattr++] = kCGLPFASamples;
-      attr[numattr++] = c->samples;
+      attr[numattr++] = mode->samples;
    }
 
    attr[numattr++] = 0;
diff --git a/src/glx/apple/apple_visual.h b/src/glx/apple/apple_visual.h
index 2cf9a9e..65bbc2e 100644
--- a/src/glx/apple/apple_visual.h
+++ b/src/glx/apple/apple_visual.h
@@ -32,9 +32,9 @@
 
 #include <stdbool.h>
 #include <OpenGL/CGLTypes.h>
+#include "glxconfig.h"
 
-/* mode is expected to be of type struct glx_config. */
-void apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const void *mode,
+void apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * mode,
                                bool * double_buffered, bool * uses_stereo,
                                bool offscreen);
 
commit f35913b96e743c5014e99220b1a1c5532a894d69
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Thu Jun 9 17:29:51 2011 -0700

    apple: Use _glapi_create_table_from_handle to initialize our dispatch table
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/src/glx/apple/apple_glapi.c b/src/glx/apple/apple_glapi.c
index f60cace..66933f5 100644
--- a/src/glx/apple/apple_glapi.c
+++ b/src/glx/apple/apple_glapi.c
@@ -75,1125 +75,9 @@ void apple_xgl_init_direct(void) {
         abort();
     }
 
-    __ogl_framework_api = calloc(1, sizeof(struct _glapi_table));
+    __ogl_framework_api = _glapi_create_table_from_handle(handle, "gl");
     assert(__ogl_framework_api);
 
-    /* to update:
-     * for f in $(grep SET_ ../../mesa/main/dispatch.h | grep INLINE | sed 's:^.*\(SET_[^(]*\)(.*$:\1:' | sort -u); do grep -q "$f(" apple_glapi.c || echo $f ; done | sed 's:SET_\(.*\)$:    SET_\1(__ogl_framework_api, dlsym(handle, "gl\1"))\;:'
-     */
-
-    SET_Accum(__ogl_framework_api, dlsym(handle, "glAccum"));
-    SET_AlphaFunc(__ogl_framework_api, dlsym(handle, "glAlphaFunc"));
-    SET_AreTexturesResident(__ogl_framework_api, dlsym(handle, "glAreTexturesResident"));
-    SET_ArrayElement(__ogl_framework_api, dlsym(handle, "glArrayElement"));
-    SET_Begin(__ogl_framework_api, dlsym(handle, "glBegin"));
-    SET_BindTexture(__ogl_framework_api, dlsym(handle, "glBindTexture"));
-    SET_Bitmap(__ogl_framework_api, dlsym(handle, "glBitmap"));
-    SET_BlendColor(__ogl_framework_api, dlsym(handle, "glBlendColor"));
-    SET_BlendEquation(__ogl_framework_api, dlsym(handle, "glBlendEquation"));
-    SET_BlendFunc(__ogl_framework_api, dlsym(handle, "glBlendFunc"));
-    SET_CallList(__ogl_framework_api, dlsym(handle, "glCallList"));
-    SET_CallLists(__ogl_framework_api, dlsym(handle, "glCallLists"));
-    SET_Clear(__ogl_framework_api, dlsym(handle, "glClear"));
-    SET_ClearAccum(__ogl_framework_api, dlsym(handle, "glClearAccum"));
-    SET_ClearColor(__ogl_framework_api, dlsym(handle, "glClearColor"));
-    SET_ClearDepth(__ogl_framework_api, dlsym(handle, "glClearDepth"));
-    SET_ClearIndex(__ogl_framework_api, dlsym(handle, "glClearIndex"));
-    SET_ClearStencil(__ogl_framework_api, dlsym(handle, "glClearStencil"));
-    SET_ClipPlane(__ogl_framework_api, dlsym(handle, "glClipPlane"));
-    SET_Color3b(__ogl_framework_api, dlsym(handle, "glColor3b"));
-    SET_Color3bv(__ogl_framework_api, dlsym(handle, "glColor3bv"));
-    SET_Color3d(__ogl_framework_api, dlsym(handle, "glColor3d"));
-    SET_Color3dv(__ogl_framework_api, dlsym(handle, "glColor3dv"));
-    SET_Color3f(__ogl_framework_api, dlsym(handle, "glColor3f"));
-    SET_Color3fv(__ogl_framework_api, dlsym(handle, "glColor3fv"));
-    SET_Color3i(__ogl_framework_api, dlsym(handle, "glColor3i"));
-    SET_Color3iv(__ogl_framework_api, dlsym(handle, "glColor3iv"));
-    SET_Color3s(__ogl_framework_api, dlsym(handle, "glColor3s"));
-    SET_Color3sv(__ogl_framework_api, dlsym(handle, "glColor3sv"));
-    SET_Color3ub(__ogl_framework_api, dlsym(handle, "glColor3ub"));
-    SET_Color3ubv(__ogl_framework_api, dlsym(handle, "glColor3ubv"));
-    SET_Color3ui(__ogl_framework_api, dlsym(handle, "glColor3ui"));
-    SET_Color3uiv(__ogl_framework_api, dlsym(handle, "glColor3uiv"));
-    SET_Color3us(__ogl_framework_api, dlsym(handle, "glColor3us"));
-    SET_Color3usv(__ogl_framework_api, dlsym(handle, "glColor3usv"));
-    SET_Color4b(__ogl_framework_api, dlsym(handle, "glColor4b"));
-    SET_Color4bv(__ogl_framework_api, dlsym(handle, "glColor4bv"));
-    SET_Color4d(__ogl_framework_api, dlsym(handle, "glColor4d"));
-    SET_Color4dv(__ogl_framework_api, dlsym(handle, "glColor4dv"));
-    SET_Color4f(__ogl_framework_api, dlsym(handle, "glColor4f"));
-    SET_Color4fv(__ogl_framework_api, dlsym(handle, "glColor4fv"));
-    SET_Color4i(__ogl_framework_api, dlsym(handle, "glColor4i"));
-    SET_Color4iv(__ogl_framework_api, dlsym(handle, "glColor4iv"));
-    SET_Color4s(__ogl_framework_api, dlsym(handle, "glColor4s"));
-    SET_Color4sv(__ogl_framework_api, dlsym(handle, "glColor4sv"));
-    SET_Color4ub(__ogl_framework_api, dlsym(handle, "glColor4ub"));
-    SET_Color4ubv(__ogl_framework_api, dlsym(handle, "glColor4ubv"));
-    SET_Color4ui(__ogl_framework_api, dlsym(handle, "glColor4ui"));
-    SET_Color4uiv(__ogl_framework_api, dlsym(handle, "glColor4uiv"));
-    SET_Color4us(__ogl_framework_api, dlsym(handle, "glColor4us"));
-    SET_Color4usv(__ogl_framework_api, dlsym(handle, "glColor4usv"));
-    SET_ColorMask(__ogl_framework_api, dlsym(handle, "glColorMask"));
-    SET_ColorMaterial(__ogl_framework_api, dlsym(handle, "glColorMaterial"));
-    SET_ColorPointer(__ogl_framework_api, dlsym(handle, "glColorPointer"));
-    SET_ColorSubTable(__ogl_framework_api, dlsym(handle, "glColorSubTable"));
-    SET_ColorTable(__ogl_framework_api, dlsym(handle, "glColorTable"));
-    SET_ColorTableParameterfv(__ogl_framework_api, dlsym(handle, "glColorTableParameterfv"));
-    SET_ColorTableParameteriv(__ogl_framework_api, dlsym(handle, "glColorTableParameteriv"));
-    SET_ConvolutionFilter1D(__ogl_framework_api, dlsym(handle, "glConvolutionFilter1D"));
-    SET_ConvolutionFilter2D(__ogl_framework_api, dlsym(handle, "glConvolutionFilter2D"));
-    SET_ConvolutionParameterf(__ogl_framework_api, dlsym(handle, "glConvolutionParameterf"));
-    SET_ConvolutionParameterfv(__ogl_framework_api, dlsym(handle, "glConvolutionParameterfv"));
-    SET_ConvolutionParameteri(__ogl_framework_api, dlsym(handle, "glConvolutionParameteri"));
-    SET_ConvolutionParameteriv(__ogl_framework_api, dlsym(handle, "glConvolutionParameteriv"));
-    SET_CopyColorSubTable(__ogl_framework_api, dlsym(handle, "glCopyColorSubTable"));
-    SET_CopyColorTable(__ogl_framework_api, dlsym(handle, "glCopyColorTable"));
-    SET_CopyConvolutionFilter1D(__ogl_framework_api, dlsym(handle, "glCopyConvolutionFilter1D"));
-    SET_CopyConvolutionFilter2D(__ogl_framework_api, dlsym(handle, "glCopyConvolutionFilter2D"));
-    SET_CopyPixels(__ogl_framework_api, dlsym(handle, "glCopyPixels"));
-    SET_CopyTexImage1D(__ogl_framework_api, dlsym(handle, "glCopyTexImage1D"));
-    SET_CopyTexImage2D(__ogl_framework_api, dlsym(handle, "glCopyTexImage2D"));
-    SET_CopyTexSubImage1D(__ogl_framework_api, dlsym(handle, "glCopyTexSubImage1D"));
-    SET_CopyTexSubImage2D(__ogl_framework_api, dlsym(handle, "glCopyTexSubImage2D"));
-    SET_CopyTexSubImage3D(__ogl_framework_api, dlsym(handle, "glCopyTexSubImage3D"));
-    SET_CullFace(__ogl_framework_api, dlsym(handle, "glCullFace"));
-    SET_DeleteLists(__ogl_framework_api, dlsym(handle, "glDeleteLists"));
-    SET_DeleteTextures(__ogl_framework_api, dlsym(handle, "glDeleteTextures"));
-    SET_DepthFunc(__ogl_framework_api, dlsym(handle, "glDepthFunc"));
-    SET_DepthMask(__ogl_framework_api, dlsym(handle, "glDepthMask"));
-    SET_DepthRange(__ogl_framework_api, dlsym(handle, "glDepthRange"));
-    SET_Disable(__ogl_framework_api, dlsym(handle, "glDisable"));
-    SET_DisableClientState(__ogl_framework_api, dlsym(handle, "glDisableClientState"));
-    SET_DrawArrays(__ogl_framework_api, dlsym(handle, "glDrawArrays"));
-    SET_DrawBuffer(__ogl_framework_api, dlsym(handle, "glDrawBuffer"));
-    SET_DrawElements(__ogl_framework_api, dlsym(handle, "glDrawElements"));
-    SET_DrawPixels(__ogl_framework_api, dlsym(handle, "glDrawPixels"));
-    SET_DrawRangeElements(__ogl_framework_api, dlsym(handle, "glDrawRangeElements"));
-    SET_EdgeFlag(__ogl_framework_api, dlsym(handle, "glEdgeFlag"));
-    SET_EdgeFlagPointer(__ogl_framework_api, dlsym(handle, "glEdgeFlagPointer"));
-    SET_EdgeFlagv(__ogl_framework_api, dlsym(handle, "glEdgeFlagv"));
-    SET_Enable(__ogl_framework_api, dlsym(handle, "glEnable"));
-    SET_EnableClientState(__ogl_framework_api, dlsym(handle, "glEnableClientState"));
-    SET_End(__ogl_framework_api, dlsym(handle, "glEnd"));
-    SET_EndList(__ogl_framework_api, dlsym(handle, "glEndList"));
-    SET_EvalCoord1d(__ogl_framework_api, dlsym(handle, "glEvalCoord1d"));
-    SET_EvalCoord1dv(__ogl_framework_api, dlsym(handle, "glEvalCoord1dv"));
-    SET_EvalCoord1f(__ogl_framework_api, dlsym(handle, "glEvalCoord1f"));
-    SET_EvalCoord1fv(__ogl_framework_api, dlsym(handle, "glEvalCoord1fv"));
-    SET_EvalCoord2d(__ogl_framework_api, dlsym(handle, "glEvalCoord2d"));
-    SET_EvalCoord2dv(__ogl_framework_api, dlsym(handle, "glEvalCoord2dv"));
-    SET_EvalCoord2f(__ogl_framework_api, dlsym(handle, "glEvalCoord2f"));
-    SET_EvalCoord2fv(__ogl_framework_api, dlsym(handle, "glEvalCoord2fv"));
-    SET_EvalMesh1(__ogl_framework_api, dlsym(handle, "glEvalMesh1"));
-    SET_EvalMesh2(__ogl_framework_api, dlsym(handle, "glEvalMesh2"));
-    SET_EvalPoint1(__ogl_framework_api, dlsym(handle, "glEvalPoint1"));
-    SET_EvalPoint2(__ogl_framework_api, dlsym(handle, "glEvalPoint2"));
-    SET_FeedbackBuffer(__ogl_framework_api, dlsym(handle, "glFeedbackBuffer"));
-    SET_Finish(__ogl_framework_api, dlsym(handle, "glFinish"));
-    SET_Flush(__ogl_framework_api, dlsym(handle, "glFlush"));
-    SET_Fogf(__ogl_framework_api, dlsym(handle, "glFogf"));
-    SET_Fogfv(__ogl_framework_api, dlsym(handle, "glFogfv"));
-    SET_Fogi(__ogl_framework_api, dlsym(handle, "glFogi"));
-    SET_Fogiv(__ogl_framework_api, dlsym(handle, "glFogiv"));
-    SET_FrontFace(__ogl_framework_api, dlsym(handle, "glFrontFace"));
-    SET_Frustum(__ogl_framework_api, dlsym(handle, "glFrustum"));
-    SET_GenLists(__ogl_framework_api, dlsym(handle, "glGenLists"));
-    SET_GenTextures(__ogl_framework_api, dlsym(handle, "glGenTextures"));
-    SET_GetBooleanv(__ogl_framework_api, dlsym(handle, "glGetBooleanv"));
-    SET_GetClipPlane(__ogl_framework_api, dlsym(handle, "glGetClipPlane"));
-    SET_GetColorTable(__ogl_framework_api, dlsym(handle, "glGetColorTable"));
-    SET_GetColorTableParameterfv(__ogl_framework_api, dlsym(handle, "glGetColorTableParameterfv"));
-    SET_GetColorTableParameteriv(__ogl_framework_api, dlsym(handle, "glGetColorTableParameteriv"));
-    SET_GetConvolutionFilter(__ogl_framework_api, dlsym(handle, "glGetConvolutionFilter"));
-    SET_GetConvolutionParameterfv(__ogl_framework_api, dlsym(handle, "glGetConvolutionParameterfv"));
-    SET_GetConvolutionParameteriv(__ogl_framework_api, dlsym(handle, "glGetConvolutionParameteriv"));
-    SET_GetDoublev(__ogl_framework_api, dlsym(handle, "glGetDoublev"));
-    SET_GetError(__ogl_framework_api, dlsym(handle, "glGetError"));
-    SET_GetFloatv(__ogl_framework_api, dlsym(handle, "glGetFloatv"));
-    SET_GetHistogram(__ogl_framework_api, dlsym(handle, "glGetHistogram"));
-    SET_GetHistogramParameterfv(__ogl_framework_api, dlsym(handle, "glGetHistogramParameterfv"));
-    SET_GetHistogramParameteriv(__ogl_framework_api, dlsym(handle, "glGetHistogramParameteriv"));
-    SET_GetIntegerv(__ogl_framework_api, dlsym(handle, "glGetIntegerv"));
-    SET_GetLightfv(__ogl_framework_api, dlsym(handle, "glGetLightfv"));
-    SET_GetLightiv(__ogl_framework_api, dlsym(handle, "glGetLightiv"));
-    SET_GetMapdv(__ogl_framework_api, dlsym(handle, "glGetMapdv"));
-    SET_GetMapfv(__ogl_framework_api, dlsym(handle, "glGetMapfv"));
-    SET_GetMapiv(__ogl_framework_api, dlsym(handle, "glGetMapiv"));
-    SET_GetMaterialfv(__ogl_framework_api, dlsym(handle, "glGetMaterialfv"));
-    SET_GetMaterialiv(__ogl_framework_api, dlsym(handle, "glGetMaterialiv"));
-    SET_GetMinmax(__ogl_framework_api, dlsym(handle, "glGetMinmax"));
-    SET_GetMinmaxParameterfv(__ogl_framework_api, dlsym(handle, "glGetMinmaxParameterfv"));
-    SET_GetMinmaxParameteriv(__ogl_framework_api, dlsym(handle, "glGetMinmaxParameteriv"));
-    SET_GetPixelMapfv(__ogl_framework_api, dlsym(handle, "glGetPixelMapfv"));
-    SET_GetPixelMapuiv(__ogl_framework_api, dlsym(handle, "glGetPixelMapuiv"));
-    SET_GetPixelMapusv(__ogl_framework_api, dlsym(handle, "glGetPixelMapusv"));
-    SET_GetPointerv(__ogl_framework_api, dlsym(handle, "glGetPointerv"));
-    SET_GetPolygonStipple(__ogl_framework_api, dlsym(handle, "glGetPolygonStipple"));
-    SET_GetSeparableFilter(__ogl_framework_api, dlsym(handle, "glGetSeparableFilter"));
-    SET_GetString(__ogl_framework_api, dlsym(handle, "glGetString"));
-    SET_GetTexEnvfv(__ogl_framework_api, dlsym(handle, "glGetTexEnvfv"));
-    SET_GetTexEnviv(__ogl_framework_api, dlsym(handle, "glGetTexEnviv"));
-    SET_GetTexGendv(__ogl_framework_api, dlsym(handle, "glGetTexGendv"));
-    SET_GetTexGenfv(__ogl_framework_api, dlsym(handle, "glGetTexGenfv"));
-    SET_GetTexGeniv(__ogl_framework_api, dlsym(handle, "glGetTexGeniv"));
-    SET_GetTexImage(__ogl_framework_api, dlsym(handle, "glGetTexImage"));
-    SET_GetTexLevelParameterfv(__ogl_framework_api, dlsym(handle, "glGetTexLevelParameterfv"));
-    SET_GetTexLevelParameteriv(__ogl_framework_api, dlsym(handle, "glGetTexLevelParameteriv"));
-    SET_GetTexParameterfv(__ogl_framework_api, dlsym(handle, "glGetTexParameterfv"));
-    SET_GetTexParameteriv(__ogl_framework_api, dlsym(handle, "glGetTexParameteriv"));
-    SET_Hint(__ogl_framework_api, dlsym(handle, "glHint"));
-    SET_Histogram(__ogl_framework_api, dlsym(handle, "glHistogram"));
-    SET_IndexMask(__ogl_framework_api, dlsym(handle, "glIndexMask"));
-    SET_IndexPointer(__ogl_framework_api, dlsym(handle, "glIndexPointer"));
-    SET_Indexd(__ogl_framework_api, dlsym(handle, "glIndexd"));
-    SET_Indexdv(__ogl_framework_api, dlsym(handle, "glIndexdv"));
-    SET_Indexf(__ogl_framework_api, dlsym(handle, "glIndexf"));
-    SET_Indexfv(__ogl_framework_api, dlsym(handle, "glIndexfv"));
-    SET_Indexi(__ogl_framework_api, dlsym(handle, "glIndexi"));
-    SET_Indexiv(__ogl_framework_api, dlsym(handle, "glIndexiv"));
-    SET_Indexs(__ogl_framework_api, dlsym(handle, "glIndexs"));
-    SET_Indexsv(__ogl_framework_api, dlsym(handle, "glIndexsv"));
-    SET_Indexub(__ogl_framework_api, dlsym(handle, "glIndexub"));
-    SET_Indexubv(__ogl_framework_api, dlsym(handle, "glIndexubv"));
-    SET_InitNames(__ogl_framework_api, dlsym(handle, "glInitNames"));
-    SET_InterleavedArrays(__ogl_framework_api, dlsym(handle, "glInterleavedArrays"));
-    SET_IsEnabled(__ogl_framework_api, dlsym(handle, "glIsEnabled"));
-    SET_IsList(__ogl_framework_api, dlsym(handle, "glIsList"));
-    SET_IsTexture(__ogl_framework_api, dlsym(handle, "glIsTexture"));
-    SET_LightModelf(__ogl_framework_api, dlsym(handle, "glLightModelf"));
-    SET_LightModelfv(__ogl_framework_api, dlsym(handle, "glLightModelfv"));
-    SET_LightModeli(__ogl_framework_api, dlsym(handle, "glLightModeli"));
-    SET_LightModeliv(__ogl_framework_api, dlsym(handle, "glLightModeliv"));
-    SET_Lightf(__ogl_framework_api, dlsym(handle, "glLightf"));
-    SET_Lightfv(__ogl_framework_api, dlsym(handle, "glLightfv"));
-    SET_Lighti(__ogl_framework_api, dlsym(handle, "glLighti"));
-    SET_Lightiv(__ogl_framework_api, dlsym(handle, "glLightiv"));
-    SET_LineStipple(__ogl_framework_api, dlsym(handle, "glLineStipple"));
-    SET_LineWidth(__ogl_framework_api, dlsym(handle, "glLineWidth"));
-    SET_ListBase(__ogl_framework_api, dlsym(handle, "glListBase"));
-    SET_LoadIdentity(__ogl_framework_api, dlsym(handle, "glLoadIdentity"));
-    SET_LoadMatrixd(__ogl_framework_api, dlsym(handle, "glLoadMatrixd"));
-    SET_LoadMatrixf(__ogl_framework_api, dlsym(handle, "glLoadMatrixf"));
-    SET_LoadName(__ogl_framework_api, dlsym(handle, "glLoadName"));
-    SET_LogicOp(__ogl_framework_api, dlsym(handle, "glLogicOp"));
-    SET_Map1d(__ogl_framework_api, dlsym(handle, "glMap1d"));
-    SET_Map1f(__ogl_framework_api, dlsym(handle, "glMap1f"));
-    SET_Map2d(__ogl_framework_api, dlsym(handle, "glMap2d"));
-    SET_Map2f(__ogl_framework_api, dlsym(handle, "glMap2f"));
-    SET_MapGrid1d(__ogl_framework_api, dlsym(handle, "glMapGrid1d"));
-    SET_MapGrid1f(__ogl_framework_api, dlsym(handle, "glMapGrid1f"));
-    SET_MapGrid2d(__ogl_framework_api, dlsym(handle, "glMapGrid2d"));
-    SET_MapGrid2f(__ogl_framework_api, dlsym(handle, "glMapGrid2f"));
-    SET_Materialf(__ogl_framework_api, dlsym(handle, "glMaterialf"));
-    SET_Materialfv(__ogl_framework_api, dlsym(handle, "glMaterialfv"));
-    SET_Materiali(__ogl_framework_api, dlsym(handle, "glMateriali"));
-    SET_Materialiv(__ogl_framework_api, dlsym(handle, "glMaterialiv"));
-    SET_MatrixMode(__ogl_framework_api, dlsym(handle, "glMatrixMode"));
-    SET_Minmax(__ogl_framework_api, dlsym(handle, "glMinmax"));
-    SET_MultMatrixd(__ogl_framework_api, dlsym(handle, "glMultMatrixd"));
-    SET_MultMatrixf(__ogl_framework_api, dlsym(handle, "glMultMatrixf"));
-    SET_NewList(__ogl_framework_api, dlsym(handle, "glNewList"));
-    SET_Normal3b(__ogl_framework_api, dlsym(handle, "glNormal3b"));
-    SET_Normal3bv(__ogl_framework_api, dlsym(handle, "glNormal3bv"));
-    SET_Normal3d(__ogl_framework_api, dlsym(handle, "glNormal3d"));
-    SET_Normal3dv(__ogl_framework_api, dlsym(handle, "glNormal3dv"));
-    SET_Normal3f(__ogl_framework_api, dlsym(handle, "glNormal3f"));
-    SET_Normal3fv(__ogl_framework_api, dlsym(handle, "glNormal3fv"));
-    SET_Normal3i(__ogl_framework_api, dlsym(handle, "glNormal3i"));
-    SET_Normal3iv(__ogl_framework_api, dlsym(handle, "glNormal3iv"));
-    SET_Normal3s(__ogl_framework_api, dlsym(handle, "glNormal3s"));
-    SET_Normal3sv(__ogl_framework_api, dlsym(handle, "glNormal3sv"));
-    SET_NormalPointer(__ogl_framework_api, dlsym(handle, "glNormalPointer"));
-    SET_Ortho(__ogl_framework_api, dlsym(handle, "glOrtho"));
-    SET_PassThrough(__ogl_framework_api, dlsym(handle, "glPassThrough"));
-    SET_PixelMapfv(__ogl_framework_api, dlsym(handle, "glPixelMapfv"));
-    SET_PixelMapuiv(__ogl_framework_api, dlsym(handle, "glPixelMapuiv"));
-    SET_PixelMapusv(__ogl_framework_api, dlsym(handle, "glPixelMapusv"));
-    SET_PixelStoref(__ogl_framework_api, dlsym(handle, "glPixelStoref"));
-    SET_PixelStorei(__ogl_framework_api, dlsym(handle, "glPixelStorei"));
-    SET_PixelTransferf(__ogl_framework_api, dlsym(handle, "glPixelTransferf"));
-    SET_PixelTransferi(__ogl_framework_api, dlsym(handle, "glPixelTransferi"));
-    SET_PixelZoom(__ogl_framework_api, dlsym(handle, "glPixelZoom"));
-    SET_PointSize(__ogl_framework_api, dlsym(handle, "glPointSize"));
-    SET_PolygonMode(__ogl_framework_api, dlsym(handle, "glPolygonMode"));
-    SET_PolygonOffset(__ogl_framework_api, dlsym(handle, "glPolygonOffset"));
-    SET_PolygonStipple(__ogl_framework_api, dlsym(handle, "glPolygonStipple"));
-    SET_PopAttrib(__ogl_framework_api, dlsym(handle, "glPopAttrib"));
-    SET_PopClientAttrib(__ogl_framework_api, dlsym(handle, "glPopClientAttrib"));
-    SET_PopMatrix(__ogl_framework_api, dlsym(handle, "glPopMatrix"));
-    SET_PopName(__ogl_framework_api, dlsym(handle, "glPopName"));
-    SET_PrioritizeTextures(__ogl_framework_api, dlsym(handle, "glPrioritizeTextures"));
-    SET_PushAttrib(__ogl_framework_api, dlsym(handle, "glPushAttrib"));
-    SET_PushClientAttrib(__ogl_framework_api, dlsym(handle, "glPushClientAttrib"));
-    SET_PushMatrix(__ogl_framework_api, dlsym(handle, "glPushMatrix"));
-    SET_PushName(__ogl_framework_api, dlsym(handle, "glPushName"));
-    SET_RasterPos2d(__ogl_framework_api, dlsym(handle, "glRasterPos2d"));
-    SET_RasterPos2dv(__ogl_framework_api, dlsym(handle, "glRasterPos2dv"));
-    SET_RasterPos2f(__ogl_framework_api, dlsym(handle, "glRasterPos2f"));
-    SET_RasterPos2fv(__ogl_framework_api, dlsym(handle, "glRasterPos2fv"));
-    SET_RasterPos2i(__ogl_framework_api, dlsym(handle, "glRasterPos2i"));
-    SET_RasterPos2iv(__ogl_framework_api, dlsym(handle, "glRasterPos2iv"));
-    SET_RasterPos2s(__ogl_framework_api, dlsym(handle, "glRasterPos2s"));
-    SET_RasterPos2sv(__ogl_framework_api, dlsym(handle, "glRasterPos2sv"));
-    SET_RasterPos3d(__ogl_framework_api, dlsym(handle, "glRasterPos3d"));
-    SET_RasterPos3dv(__ogl_framework_api, dlsym(handle, "glRasterPos3dv"));
-    SET_RasterPos3f(__ogl_framework_api, dlsym(handle, "glRasterPos3f"));
-    SET_RasterPos3fv(__ogl_framework_api, dlsym(handle, "glRasterPos3fv"));
-    SET_RasterPos3i(__ogl_framework_api, dlsym(handle, "glRasterPos3i"));
-    SET_RasterPos3iv(__ogl_framework_api, dlsym(handle, "glRasterPos3iv"));
-    SET_RasterPos3s(__ogl_framework_api, dlsym(handle, "glRasterPos3s"));
-    SET_RasterPos3sv(__ogl_framework_api, dlsym(handle, "glRasterPos3sv"));
-    SET_RasterPos4d(__ogl_framework_api, dlsym(handle, "glRasterPos4d"));
-    SET_RasterPos4dv(__ogl_framework_api, dlsym(handle, "glRasterPos4dv"));
-    SET_RasterPos4f(__ogl_framework_api, dlsym(handle, "glRasterPos4f"));
-    SET_RasterPos4fv(__ogl_framework_api, dlsym(handle, "glRasterPos4fv"));
-    SET_RasterPos4i(__ogl_framework_api, dlsym(handle, "glRasterPos4i"));
-    SET_RasterPos4iv(__ogl_framework_api, dlsym(handle, "glRasterPos4iv"));
-    SET_RasterPos4s(__ogl_framework_api, dlsym(handle, "glRasterPos4s"));
-    SET_RasterPos4sv(__ogl_framework_api, dlsym(handle, "glRasterPos4sv"));
-    SET_ReadBuffer(__ogl_framework_api, dlsym(handle, "glReadBuffer"));
-    SET_ReadPixels(__ogl_framework_api, dlsym(handle, "glReadPixels"));
-    SET_Rectd(__ogl_framework_api, dlsym(handle, "glRectd"));
-    SET_Rectdv(__ogl_framework_api, dlsym(handle, "glRectdv"));
-    SET_Rectf(__ogl_framework_api, dlsym(handle, "glRectf"));
-    SET_Rectfv(__ogl_framework_api, dlsym(handle, "glRectfv"));
-    SET_Recti(__ogl_framework_api, dlsym(handle, "glRecti"));
-    SET_Rectiv(__ogl_framework_api, dlsym(handle, "glRectiv"));
-    SET_Rects(__ogl_framework_api, dlsym(handle, "glRects"));
-    SET_Rectsv(__ogl_framework_api, dlsym(handle, "glRectsv"));
-    SET_RenderMode(__ogl_framework_api, dlsym(handle, "glRenderMode"));
-    SET_ResetHistogram(__ogl_framework_api, dlsym(handle, "glResetHistogram"));
-    SET_ResetMinmax(__ogl_framework_api, dlsym(handle, "glResetMinmax"));
-    SET_Rotated(__ogl_framework_api, dlsym(handle, "glRotated"));
-    SET_Rotatef(__ogl_framework_api, dlsym(handle, "glRotatef"));
-    SET_Scaled(__ogl_framework_api, dlsym(handle, "glScaled"));
-    SET_Scalef(__ogl_framework_api, dlsym(handle, "glScalef"));
-    SET_Scissor(__ogl_framework_api, dlsym(handle, "glScissor"));
-    SET_SelectBuffer(__ogl_framework_api, dlsym(handle, "glSelectBuffer"));
-    SET_SeparableFilter2D(__ogl_framework_api, dlsym(handle, "glSeparableFilter2D"));
-    SET_ShadeModel(__ogl_framework_api, dlsym(handle, "glShadeModel"));
-    SET_StencilFunc(__ogl_framework_api, dlsym(handle, "glStencilFunc"));
-    SET_StencilMask(__ogl_framework_api, dlsym(handle, "glStencilMask"));
-    SET_StencilOp(__ogl_framework_api, dlsym(handle, "glStencilOp"));
-    SET_TexCoord1d(__ogl_framework_api, dlsym(handle, "glTexCoord1d"));
-    SET_TexCoord1dv(__ogl_framework_api, dlsym(handle, "glTexCoord1dv"));
-    SET_TexCoord1f(__ogl_framework_api, dlsym(handle, "glTexCoord1f"));
-    SET_TexCoord1fv(__ogl_framework_api, dlsym(handle, "glTexCoord1fv"));
-    SET_TexCoord1i(__ogl_framework_api, dlsym(handle, "glTexCoord1i"));
-    SET_TexCoord1iv(__ogl_framework_api, dlsym(handle, "glTexCoord1iv"));
-    SET_TexCoord1s(__ogl_framework_api, dlsym(handle, "glTexCoord1s"));
-    SET_TexCoord1sv(__ogl_framework_api, dlsym(handle, "glTexCoord1sv"));
-    SET_TexCoord2d(__ogl_framework_api, dlsym(handle, "glTexCoord2d"));
-    SET_TexCoord2dv(__ogl_framework_api, dlsym(handle, "glTexCoord2dv"));
-    SET_TexCoord2f(__ogl_framework_api, dlsym(handle, "glTexCoord2f"));
-    SET_TexCoord2fv(__ogl_framework_api, dlsym(handle, "glTexCoord2fv"));
-    SET_TexCoord2i(__ogl_framework_api, dlsym(handle, "glTexCoord2i"));
-    SET_TexCoord2iv(__ogl_framework_api, dlsym(handle, "glTexCoord2iv"));
-    SET_TexCoord2s(__ogl_framework_api, dlsym(handle, "glTexCoord2s"));
-    SET_TexCoord2sv(__ogl_framework_api, dlsym(handle, "glTexCoord2sv"));
-    SET_TexCoord3d(__ogl_framework_api, dlsym(handle, "glTexCoord3d"));
-    SET_TexCoord3dv(__ogl_framework_api, dlsym(handle, "glTexCoord3dv"));
-    SET_TexCoord3f(__ogl_framework_api, dlsym(handle, "glTexCoord3f"));
-    SET_TexCoord3fv(__ogl_framework_api, dlsym(handle, "glTexCoord3fv"));
-    SET_TexCoord3i(__ogl_framework_api, dlsym(handle, "glTexCoord3i"));
-    SET_TexCoord3iv(__ogl_framework_api, dlsym(handle, "glTexCoord3iv"));
-    SET_TexCoord3s(__ogl_framework_api, dlsym(handle, "glTexCoord3s"));
-    SET_TexCoord3sv(__ogl_framework_api, dlsym(handle, "glTexCoord3sv"));
-    SET_TexCoord4d(__ogl_framework_api, dlsym(handle, "glTexCoord4d"));
-    SET_TexCoord4dv(__ogl_framework_api, dlsym(handle, "glTexCoord4dv"));
-    SET_TexCoord4f(__ogl_framework_api, dlsym(handle, "glTexCoord4f"));
-    SET_TexCoord4fv(__ogl_framework_api, dlsym(handle, "glTexCoord4fv"));
-    SET_TexCoord4i(__ogl_framework_api, dlsym(handle, "glTexCoord4i"));
-    SET_TexCoord4iv(__ogl_framework_api, dlsym(handle, "glTexCoord4iv"));
-    SET_TexCoord4s(__ogl_framework_api, dlsym(handle, "glTexCoord4s"));
-    SET_TexCoord4sv(__ogl_framework_api, dlsym(handle, "glTexCoord4sv"));
-    SET_TexCoordPointer(__ogl_framework_api, dlsym(handle, "glTexCoordPointer"));
-    SET_TexEnvf(__ogl_framework_api, dlsym(handle, "glTexEnvf"));
-    SET_TexEnvfv(__ogl_framework_api, dlsym(handle, "glTexEnvfv"));
-    SET_TexEnvi(__ogl_framework_api, dlsym(handle, "glTexEnvi"));
-    SET_TexEnviv(__ogl_framework_api, dlsym(handle, "glTexEnviv"));
-    SET_TexGend(__ogl_framework_api, dlsym(handle, "glTexGend"));
-    SET_TexGendv(__ogl_framework_api, dlsym(handle, "glTexGendv"));
-    SET_TexGenf(__ogl_framework_api, dlsym(handle, "glTexGenf"));
-    SET_TexGenfv(__ogl_framework_api, dlsym(handle, "glTexGenfv"));
-    SET_TexGeni(__ogl_framework_api, dlsym(handle, "glTexGeni"));
-    SET_TexGeniv(__ogl_framework_api, dlsym(handle, "glTexGeniv"));
-    SET_TexImage1D(__ogl_framework_api, dlsym(handle, "glTexImage1D"));
-    SET_TexImage2D(__ogl_framework_api, dlsym(handle, "glTexImage2D"));
-    SET_TexImage3D(__ogl_framework_api, dlsym(handle, "glTexImage3D"));
-    SET_TexParameterf(__ogl_framework_api, dlsym(handle, "glTexParameterf"));
-    SET_TexParameterfv(__ogl_framework_api, dlsym(handle, "glTexParameterfv"));
-    SET_TexParameteri(__ogl_framework_api, dlsym(handle, "glTexParameteri"));
-    SET_TexParameteriv(__ogl_framework_api, dlsym(handle, "glTexParameteriv"));
-    SET_TexSubImage1D(__ogl_framework_api, dlsym(handle, "glTexSubImage1D"));
-    SET_TexSubImage2D(__ogl_framework_api, dlsym(handle, "glTexSubImage2D"));
-    SET_TexSubImage3D(__ogl_framework_api, dlsym(handle, "glTexSubImage3D"));
-    SET_Translated(__ogl_framework_api, dlsym(handle, "glTranslated"));
-    SET_Translatef(__ogl_framework_api, dlsym(handle, "glTranslatef"));
-    SET_Vertex2d(__ogl_framework_api, dlsym(handle, "glVertex2d"));
-    SET_Vertex2dv(__ogl_framework_api, dlsym(handle, "glVertex2dv"));
-    SET_Vertex2f(__ogl_framework_api, dlsym(handle, "glVertex2f"));
-    SET_Vertex2fv(__ogl_framework_api, dlsym(handle, "glVertex2fv"));
-    SET_Vertex2i(__ogl_framework_api, dlsym(handle, "glVertex2i"));
-    SET_Vertex2iv(__ogl_framework_api, dlsym(handle, "glVertex2iv"));
-    SET_Vertex2s(__ogl_framework_api, dlsym(handle, "glVertex2s"));
-    SET_Vertex2sv(__ogl_framework_api, dlsym(handle, "glVertex2sv"));
-    SET_Vertex3d(__ogl_framework_api, dlsym(handle, "glVertex3d"));
-    SET_Vertex3dv(__ogl_framework_api, dlsym(handle, "glVertex3dv"));
-    SET_Vertex3f(__ogl_framework_api, dlsym(handle, "glVertex3f"));
-    SET_Vertex3fv(__ogl_framework_api, dlsym(handle, "glVertex3fv"));
-    SET_Vertex3i(__ogl_framework_api, dlsym(handle, "glVertex3i"));
-    SET_Vertex3iv(__ogl_framework_api, dlsym(handle, "glVertex3iv"));
-    SET_Vertex3s(__ogl_framework_api, dlsym(handle, "glVertex3s"));
-    SET_Vertex3sv(__ogl_framework_api, dlsym(handle, "glVertex3sv"));
-    SET_Vertex4d(__ogl_framework_api, dlsym(handle, "glVertex4d"));
-    SET_Vertex4dv(__ogl_framework_api, dlsym(handle, "glVertex4dv"));
-    SET_Vertex4f(__ogl_framework_api, dlsym(handle, "glVertex4f"));
-    SET_Vertex4fv(__ogl_framework_api, dlsym(handle, "glVertex4fv"));
-    SET_Vertex4i(__ogl_framework_api, dlsym(handle, "glVertex4i"));
-    SET_Vertex4iv(__ogl_framework_api, dlsym(handle, "glVertex4iv"));
-    SET_Vertex4s(__ogl_framework_api, dlsym(handle, "glVertex4s"));
-    SET_Vertex4sv(__ogl_framework_api, dlsym(handle, "glVertex4sv"));
-    SET_VertexPointer(__ogl_framework_api, dlsym(handle, "glVertexPointer"));
-    SET_Viewport(__ogl_framework_api, dlsym(handle, "glViewport"));
-
-    /* GL_VERSION_2_0 */
-    SET_AttachShader(__ogl_framework_api, dlsym(handle, "glAttachShader"));
-    SET_CreateProgram(__ogl_framework_api, dlsym(handle, "glCreateProgram"));
-    SET_CreateShader(__ogl_framework_api, dlsym(handle, "glCreateShader"));
-    SET_DeleteProgram(__ogl_framework_api, dlsym(handle, "glDeleteProgram"));
-    SET_DeleteShader(__ogl_framework_api, dlsym(handle, "glDeleteShader"));
-    SET_DetachShader(__ogl_framework_api, dlsym(handle, "glDetachShader"));
-    SET_GetAttachedShaders(__ogl_framework_api, dlsym(handle, "glGetAttachedShaders"));
-    SET_GetProgramiv(__ogl_framework_api, dlsym(handle, "glGetProgramiv"));
-    SET_GetProgramInfoLog(__ogl_framework_api, dlsym(handle, "glGetProgramInfoLog"));
-    SET_GetShaderInfoLog(__ogl_framework_api, dlsym(handle, "glGetShaderInfoLog"));
-    SET_GetShaderiv(__ogl_framework_api, dlsym(handle, "glGetShaderiv"));
-    SET_IsProgram(__ogl_framework_api, dlsym(handle, "glIsProgram"));
-    SET_IsShader(__ogl_framework_api, dlsym(handle, "glIsShader"));
-    SET_StencilFuncSeparate(__ogl_framework_api, dlsym(handle, "glStencilFuncSeparate"));
-    SET_StencilMaskSeparate(__ogl_framework_api, dlsym(handle, "glStencilMaskSeparate"));
-    SET_StencilOpSeparate(__ogl_framework_api, dlsym(handle, "glStencilOpSeparate"));
-
-    /* GL_VERSION_2_1 */
-    SET_UniformMatrix2x3fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix2x3fv"));
-    SET_UniformMatrix2x4fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix2x4fv"));
-    SET_UniformMatrix3x2fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix3x2fv"));
-    SET_UniformMatrix3x4fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix3x4fv"));
-    SET_UniformMatrix4x2fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix4x2fv"));
-    SET_UniformMatrix4x3fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix4x3fv"));
-
-    /* GL_VERSION_3_0 */
-    SET_ClampColor(__ogl_framework_api, dlsym(handle, "glClampColor"));
-    SET_ClearBufferfi(__ogl_framework_api, dlsym(handle, "glClearBufferfi"));
-    SET_ClearBufferfv(__ogl_framework_api, dlsym(handle, "glClearBufferfv"));
-    SET_ClearBufferiv(__ogl_framework_api, dlsym(handle, "glClearBufferiv"));
-    SET_ClearBufferuiv(__ogl_framework_api, dlsym(handle, "glClearBufferuiv"));
-    SET_GetStringi(__ogl_framework_api, dlsym(handle, "glGetStringi"));
-
-    /* GL_VERSION_3_1 */
-    SET_TexBuffer(__ogl_framework_api, dlsym(handle, "glTexBuffer"));
-
-    /* GL_VERSION_3_2 */
-    SET_FramebufferTexture(__ogl_framework_api, dlsym(handle, "glFramebufferTexture"));
-    SET_GetBufferParameteri64v(__ogl_framework_api, dlsym(handle, "glGetBufferParameteri64v"));
-    SET_GetInteger64i_v(__ogl_framework_api, dlsym(handle, "glGetInteger64i_v"));
-
-    /* GL_APPLE_vertex_array_object */
-    SET_BindVertexArrayAPPLE(__ogl_framework_api, dlsym(handle, "glBindVertexArrayAPPLE"));
-    SET_DeleteVertexArraysAPPLE(__ogl_framework_api, dlsym(handle, "glDeleteVertexArraysAPPLE"));
-    SET_GenVertexArraysAPPLE(__ogl_framework_api, dlsym(handle, "glGenVertexArraysAPPLE"));
-    SET_IsVertexArrayAPPLE(__ogl_framework_api, dlsym(handle, "glIsVertexArrayAPPLE"));
-
-    /* GL_ARB_draw_buffers */
-    SET_DrawBuffersARB(__ogl_framework_api, dlsym(handle, "glDrawBuffersARB"));
-
-    /* GL_ARB_multisample */
-    SET_SampleCoverageARB(__ogl_framework_api, dlsym(handle, "glSampleCoverageARB"));
-
-    /* GL_ARB_multitexture */
-    SET_ActiveTextureARB(__ogl_framework_api, dlsym(handle, "glActiveTextureARB"));
-    SET_ClientActiveTextureARB(__ogl_framework_api, dlsym(handle, "glClientActiveTextureARB"));
-    SET_MultiTexCoord1dARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1dARB"));
-    SET_MultiTexCoord1dvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1dvARB"));
-    SET_MultiTexCoord1fARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1fARB"));
-    SET_MultiTexCoord1fvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1fvARB"));
-    SET_MultiTexCoord1iARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1iARB"));
-    SET_MultiTexCoord1ivARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1ivARB"));
-    SET_MultiTexCoord1sARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1sARB"));
-    SET_MultiTexCoord1svARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1svARB"));
-    SET_MultiTexCoord2dARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2dARB"));
-    SET_MultiTexCoord2dvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2dvARB"));
-    SET_MultiTexCoord2fARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2fARB"));
-    SET_MultiTexCoord2fvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2fvARB"));
-    SET_MultiTexCoord2iARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2iARB"));
-    SET_MultiTexCoord2ivARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2ivARB"));
-    SET_MultiTexCoord2sARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2sARB"));
-    SET_MultiTexCoord2svARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2svARB"));
-    SET_MultiTexCoord3dARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3dARB"));
-    SET_MultiTexCoord3dvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3dvARB"));
-    SET_MultiTexCoord3fARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3fARB"));
-    SET_MultiTexCoord3fvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3fvARB"));
-    SET_MultiTexCoord3iARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3iARB"));
-    SET_MultiTexCoord3ivARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3ivARB"));
-    SET_MultiTexCoord3sARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3sARB"));
-    SET_MultiTexCoord3svARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3svARB"));
-    SET_MultiTexCoord4dARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4dARB"));
-    SET_MultiTexCoord4dvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4dvARB"));
-    SET_MultiTexCoord4fARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4fARB"));
-    SET_MultiTexCoord4fvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4fvARB"));
-    SET_MultiTexCoord4iARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4iARB"));
-    SET_MultiTexCoord4ivARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4ivARB"));
-    SET_MultiTexCoord4sARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4sARB"));
-    SET_MultiTexCoord4svARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4svARB"));
-
-    /* GL_ARB_occlusion_query */
-    SET_BeginQueryARB(__ogl_framework_api, dlsym(handle, "glBeginQueryARB"));
-    SET_DeleteQueriesARB(__ogl_framework_api, dlsym(handle, "glDeleteQueriesARB"));
-    SET_EndQueryARB(__ogl_framework_api, dlsym(handle, "glEndQueryARB"));
-    SET_GenQueriesARB(__ogl_framework_api, dlsym(handle, "glGenQueriesARB"));
-    SET_GetQueryObjectivARB(__ogl_framework_api, dlsym(handle, "glGetQueryObjectivARB"));
-    SET_GetQueryObjectuivARB(__ogl_framework_api, dlsym(handle, "glGetQueryObjectuivARB"));
-    SET_GetQueryivARB(__ogl_framework_api, dlsym(handle, "glGetQueryivARB"));
-    SET_IsQueryARB(__ogl_framework_api, dlsym(handle, "glIsQueryARB"));
-
-    /* GL_ARB_shader_objects */
-    SET_AttachObjectARB(__ogl_framework_api, dlsym(handle, "glAttachObjectARB"));
-    SET_CompileShaderARB(__ogl_framework_api, dlsym(handle, "glCompileShaderARB"));
-    SET_DeleteObjectARB(__ogl_framework_api, dlsym(handle, "glDeleteObjectARB"));
-    SET_GetHandleARB(__ogl_framework_api, dlsym(handle, "glGetHandleARB"));
-    SET_DetachObjectARB(__ogl_framework_api, dlsym(handle, "glDetachObjectARB"));
-    SET_CreateProgramObjectARB(__ogl_framework_api, dlsym(handle, "glCreateProgramObjectARB"));
-    SET_CreateShaderObjectARB(__ogl_framework_api, dlsym(handle, "glCreateShaderObjectARB"));
-    SET_GetInfoLogARB(__ogl_framework_api, dlsym(handle, "glGetInfoLogARB"));
-    SET_GetActiveUniformARB(__ogl_framework_api, dlsym(handle, "glGetActiveUniformARB"));
-    SET_GetAttachedObjectsARB(__ogl_framework_api, dlsym(handle, "glGetAttachedObjectsARB"));
-    SET_GetObjectParameterfvARB(__ogl_framework_api, dlsym(handle, "glGetObjectParameterfvARB"));
-    SET_GetObjectParameterivARB(__ogl_framework_api, dlsym(handle, "glGetObjectParameterivARB"));
-    SET_GetShaderSourceARB(__ogl_framework_api, dlsym(handle, "glGetShaderSourceARB"));
-    SET_GetUniformLocationARB(__ogl_framework_api, dlsym(handle, "glGetUniformLocationARB"));
-    SET_GetUniformfvARB(__ogl_framework_api, dlsym(handle, "glGetUniformfvARB"));
-    SET_GetUniformivARB(__ogl_framework_api, dlsym(handle, "glGetUniformivARB"));
-    SET_LinkProgramARB(__ogl_framework_api, dlsym(handle, "glLinkProgramARB"));
-    SET_ShaderSourceARB(__ogl_framework_api, dlsym(handle, "glShaderSourceARB"));
-    SET_Uniform1fARB(__ogl_framework_api, dlsym(handle, "glUniform1fARB"));
-    SET_Uniform1fvARB(__ogl_framework_api, dlsym(handle, "glUniform1fvARB"));
-    SET_Uniform1iARB(__ogl_framework_api, dlsym(handle, "glUniform1iARB"));
-    SET_Uniform1ivARB(__ogl_framework_api, dlsym(handle, "glUniform1ivARB"));
-    SET_Uniform2fARB(__ogl_framework_api, dlsym(handle, "glUniform2fARB"));
-    SET_Uniform2fvARB(__ogl_framework_api, dlsym(handle, "glUniform2fvARB"));
-    SET_Uniform2iARB(__ogl_framework_api, dlsym(handle, "glUniform2iARB"));
-    SET_Uniform2ivARB(__ogl_framework_api, dlsym(handle, "glUniform2ivARB"));
-    SET_Uniform3fARB(__ogl_framework_api, dlsym(handle, "glUniform3fARB"));
-    SET_Uniform3fvARB(__ogl_framework_api, dlsym(handle, "glUniform3fvARB"));
-    SET_Uniform3iARB(__ogl_framework_api, dlsym(handle, "glUniform3iARB"));
-    SET_Uniform3ivARB(__ogl_framework_api, dlsym(handle, "glUniform3ivARB"));
-    SET_Uniform4fARB(__ogl_framework_api, dlsym(handle, "glUniform4fARB"));
-    SET_Uniform4fvARB(__ogl_framework_api, dlsym(handle, "glUniform4fvARB"));
-    SET_Uniform4iARB(__ogl_framework_api, dlsym(handle, "glUniform4iARB"));
-    SET_Uniform4ivARB(__ogl_framework_api, dlsym(handle, "glUniform4ivARB"));
-    SET_UniformMatrix2fvARB(__ogl_framework_api, dlsym(handle, "glUniformMatrix2fvARB"));
-    SET_UniformMatrix3fvARB(__ogl_framework_api, dlsym(handle, "glUniformMatrix3fvARB"));
-    SET_UniformMatrix4fvARB(__ogl_framework_api, dlsym(handle, "glUniformMatrix4fvARB"));
-    SET_UseProgramObjectARB(__ogl_framework_api, dlsym(handle, "glUseProgramObjectARB"));
-    SET_ValidateProgramARB(__ogl_framework_api, dlsym(handle, "glValidateProgramARB"));
-
-    /* GL_ARB_texture_compression */
-    SET_CompressedTexImage1DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexImage1DARB"));
-    SET_CompressedTexImage2DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexImage2DARB"));
-    SET_CompressedTexImage3DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexImage3DARB"));
-    SET_CompressedTexSubImage1DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexSubImage1DARB"));
-    SET_CompressedTexSubImage2DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexSubImage2DARB"));
-    SET_CompressedTexSubImage3DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexSubImage3DARB"));
-    SET_GetCompressedTexImageARB(__ogl_framework_api, dlsym(handle, "glGetCompressedTexImageARB"));
-
-    /* GL_ARB_transpose_matrix */
-    SET_LoadTransposeMatrixdARB(__ogl_framework_api, dlsym(handle, "glLoadTransposeMatrixdARB"));
-    SET_LoadTransposeMatrixfARB(__ogl_framework_api, dlsym(handle, "glLoadTransposeMatrixfARB"));
-    SET_MultTransposeMatrixdARB(__ogl_framework_api, dlsym(handle, "glMultTransposeMatrixdARB"));
-    SET_MultTransposeMatrixfARB(__ogl_framework_api, dlsym(handle, "glMultTransposeMatrixfARB"));
-
-    /* GL_ARB_vertex_buffer_object */
-    SET_BindBufferARB(__ogl_framework_api, dlsym(handle, "glBindBufferARB"));
-    SET_BufferDataARB(__ogl_framework_api, dlsym(handle, "glBufferDataARB"));
-    SET_BufferSubDataARB(__ogl_framework_api, dlsym(handle, "glBufferSubDataARB"));
-    SET_DeleteBuffersARB(__ogl_framework_api, dlsym(handle, "glDeleteBuffersARB"));
-    SET_GenBuffersARB(__ogl_framework_api, dlsym(handle, "glGenBuffersARB"));
-    SET_GetBufferParameterivARB(__ogl_framework_api, dlsym(handle, "glGetBufferParameterivARB"));
-    SET_GetBufferPointervARB(__ogl_framework_api, dlsym(handle, "glGetBufferPointervARB"));
-    SET_GetBufferSubDataARB(__ogl_framework_api, dlsym(handle, "glGetBufferSubDataARB"));
-    SET_IsBufferARB(__ogl_framework_api, dlsym(handle, "glIsBufferARB"));
-    SET_MapBufferARB(__ogl_framework_api, dlsym(handle, "glMapBufferARB"));
-    SET_UnmapBufferARB(__ogl_framework_api, dlsym(handle, "glUnmapBufferARB"));
-
-    /* GL_ARB_vertex_program */
-    SET_DisableVertexAttribArrayARB(__ogl_framework_api, dlsym(handle, "glDisableVertexAttribArrayARB"));
-    SET_EnableVertexAttribArrayARB(__ogl_framework_api, dlsym(handle, "glEnableVertexAttribArrayARB"));
-    SET_GetProgramEnvParameterdvARB(__ogl_framework_api, dlsym(handle, "glGetProgramEnvParameterdvARB"));
-    SET_GetProgramEnvParameterfvARB(__ogl_framework_api, dlsym(handle, "glGetProgramEnvParameterfvARB"));
-    SET_GetProgramLocalParameterdvARB(__ogl_framework_api, dlsym(handle, "glGetProgramLocalParameterdvARB"));
-    SET_GetProgramLocalParameterfvARB(__ogl_framework_api, dlsym(handle, "glGetProgramLocalParameterfvARB"));
-    SET_GetProgramStringARB(__ogl_framework_api, dlsym(handle, "glGetProgramStringARB"));
-    SET_GetProgramivARB(__ogl_framework_api, dlsym(handle, "glGetProgramivARB"));
-    SET_GetVertexAttribdvARB(__ogl_framework_api, dlsym(handle, "glGetVertexAttribdvARB"));
-    SET_GetVertexAttribfvARB(__ogl_framework_api, dlsym(handle, "glGetVertexAttribfvARB"));
-    SET_GetVertexAttribivARB(__ogl_framework_api, dlsym(handle, "glGetVertexAttribivARB"));
-    SET_ProgramEnvParameter4dARB(__ogl_framework_api, dlsym(handle, "glProgramEnvParameter4dARB"));
-    SET_ProgramEnvParameter4dvARB(__ogl_framework_api, dlsym(handle, "glProgramEnvParameter4dvARB"));
-    SET_ProgramEnvParameter4fARB(__ogl_framework_api, dlsym(handle, "glProgramEnvParameter4fARB"));
-    SET_ProgramEnvParameter4fvARB(__ogl_framework_api, dlsym(handle, "glProgramEnvParameter4fvARB"));
-    SET_ProgramLocalParameter4dARB(__ogl_framework_api, dlsym(handle, "glProgramLocalParameter4dARB"));
-    SET_ProgramLocalParameter4dvARB(__ogl_framework_api, dlsym(handle, "glProgramLocalParameter4dvARB"));
-    SET_ProgramLocalParameter4fARB(__ogl_framework_api, dlsym(handle, "glProgramLocalParameter4fARB"));
-    SET_ProgramLocalParameter4fvARB(__ogl_framework_api, dlsym(handle, "glProgramLocalParameter4fvARB"));
-    SET_ProgramStringARB(__ogl_framework_api, dlsym(handle, "glProgramStringARB"));
-    SET_VertexAttrib1dARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1dARB"));
-    SET_VertexAttrib1dvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1dvARB"));
-    SET_VertexAttrib1fARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1fARB"));
-    SET_VertexAttrib1fvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1fvARB"));
-    SET_VertexAttrib1sARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1sARB"));
-    SET_VertexAttrib1svARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1svARB"));
-    SET_VertexAttrib2dARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2dARB"));
-    SET_VertexAttrib2dvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2dvARB"));
-    SET_VertexAttrib2fARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2fARB"));
-    SET_VertexAttrib2fvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2fvARB"));
-    SET_VertexAttrib2sARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2sARB"));
-    SET_VertexAttrib2svARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2svARB"));
-    SET_VertexAttrib3dARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3dARB"));
-    SET_VertexAttrib3dvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3dvARB"));
-    SET_VertexAttrib3fARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3fARB"));
-    SET_VertexAttrib3fvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3fvARB"));
-    SET_VertexAttrib3sARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3sARB"));
-    SET_VertexAttrib3svARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3svARB"));
-    SET_VertexAttrib4NbvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NbvARB"));
-    SET_VertexAttrib4NivARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NivARB"));
-    SET_VertexAttrib4NsvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NsvARB"));
-    SET_VertexAttrib4NubARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NubARB"));
-    SET_VertexAttrib4NubvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NubvARB"));
-    SET_VertexAttrib4NuivARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NuivARB"));
-    SET_VertexAttrib4NusvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NusvARB"));
-    SET_VertexAttrib4bvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4bvARB"));
-    SET_VertexAttrib4dARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4dARB"));
-    SET_VertexAttrib4dvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4dvARB"));
-    SET_VertexAttrib4fARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4fARB"));
-    SET_VertexAttrib4fvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4fvARB"));
-    SET_VertexAttrib4ivARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4ivARB"));
-    SET_VertexAttrib4sARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4sARB"));
-    SET_VertexAttrib4svARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4svARB"));
-    SET_VertexAttrib4ubvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4ubvARB"));
-    SET_VertexAttrib4uivARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4uivARB"));
-    SET_VertexAttrib4usvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4usvARB"));
-    SET_VertexAttribPointerARB(__ogl_framework_api, dlsym(handle, "glVertexAttribPointerARB"));
-
-    /* GL_ARB_vertex_shader */
-    SET_BindAttribLocationARB(__ogl_framework_api, dlsym(handle, "glBindAttribLocationARB"));
-    SET_GetActiveAttribARB(__ogl_framework_api, dlsym(handle, "glGetActiveAttribARB"));
-    SET_GetAttribLocationARB(__ogl_framework_api, dlsym(handle, "glGetAttribLocationARB"));
-
-    /* GL_ARB_window_pos */
-    SET_WindowPos2dMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2dARB"));
-    SET_WindowPos2dvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2dvARB"));
-    SET_WindowPos2fMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2fARB"));
-    SET_WindowPos2fvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2fvARB"));
-    SET_WindowPos2iMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2iARB"));
-    SET_WindowPos2ivMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2ivARB"));
-    SET_WindowPos2sMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2sARB"));
-    SET_WindowPos2svMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2svARB"));
-    SET_WindowPos3dMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3dARB"));
-    SET_WindowPos3dvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3dvARB"));
-    SET_WindowPos3fMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3fARB"));
-    SET_WindowPos3fvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3fvARB"));
-    SET_WindowPos3iMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3iARB"));
-    SET_WindowPos3ivMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3ivARB"));
-    SET_WindowPos3sMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3sARB"));
-    SET_WindowPos3svMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3svARB"));
-
-    /* GL_ATI_fragment_shader / GL_EXT_fragment_shader */
-    if(dlsym(handle, "glAlphaFragmentOp1ATI")) {
-        /* GL_ATI_fragment_shader */
-        SET_AlphaFragmentOp1ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp1ATI"));
-        SET_AlphaFragmentOp2ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp2ATI"));
-        SET_AlphaFragmentOp3ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp3ATI"));
-        SET_BeginFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glBeginFragmentShaderATI"));
-        SET_BindFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glBindFragmentShaderATI"));
-        SET_ColorFragmentOp1ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp1ATI"));
-        SET_ColorFragmentOp2ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp2ATI"));
-        SET_ColorFragmentOp3ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp3ATI"));
-        SET_DeleteFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glDeleteFragmentShaderATI"));
-        SET_EndFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glEndFragmentShaderATI"));
-        SET_GenFragmentShadersATI(__ogl_framework_api, dlsym(handle, "glGenFragmentShadersATI"));
-        SET_PassTexCoordATI(__ogl_framework_api, dlsym(handle, "glPassTexCoordATI"));
-        SET_SampleMapATI(__ogl_framework_api, dlsym(handle, "glSampleMapATI"));
-        SET_SetFragmentShaderConstantATI(__ogl_framework_api, dlsym(handle, "glSetFragmentShaderConstantATI"));
-    } else {
-        /* GL_EXT_fragment_shader */
-        SET_AlphaFragmentOp1ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp1EXT"));
-        SET_AlphaFragmentOp2ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp2EXT"));
-        SET_AlphaFragmentOp3ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp3EXT"));
-        SET_BeginFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glBeginFragmentShaderEXT"));
-        SET_BindFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glBindFragmentShaderEXT"));
-        SET_ColorFragmentOp1ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp1EXT"));
-        SET_ColorFragmentOp2ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp2EXT"));
-        SET_ColorFragmentOp3ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp3EXT"));
-        SET_DeleteFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glDeleteFragmentShaderEXT"));
-        SET_EndFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glEndFragmentShaderEXT"));
-        SET_GenFragmentShadersATI(__ogl_framework_api, dlsym(handle, "glGenFragmentShadersEXT"));
-        SET_PassTexCoordATI(__ogl_framework_api, dlsym(handle, "glPassTexCoordEXT"));
-        SET_SampleMapATI(__ogl_framework_api, dlsym(handle, "glSampleMapEXT"));
-        SET_SetFragmentShaderConstantATI(__ogl_framework_api, dlsym(handle, "glSetFragmentShaderConstantEXT"));
-    }
-
-    /* GL_ATI_separate_stencil */
-    SET_StencilFuncSeparateATI(__ogl_framework_api, dlsym(handle, "glStencilFuncSeparateATI"));
-
-    /* GL_EXT_blend_equation_separate */
-    SET_BlendEquationSeparateEXT(__ogl_framework_api, dlsym(handle, "glBlendEquationSeparateEXT"));
-
-    /* GL_EXT_blend_func_separate */
-    SET_BlendFuncSeparateEXT(__ogl_framework_api, dlsym(handle, "glBlendFuncSeparateEXT"));
-
-    /* GL_EXT_depth_bounds_test */
-    SET_DepthBoundsEXT(__ogl_framework_api, dlsym(handle, "glDepthBoundsEXT"));
-
-    /* GL_EXT_compiled_vertex_array */
-    SET_LockArraysEXT(__ogl_framework_api, dlsym(handle, "glLockArraysEXT"));
-    SET_UnlockArraysEXT(__ogl_framework_api, dlsym(handle, "glUnlockArraysEXT"));
-
-    /* GL_EXT_cull_vertex */
-//    SET_CullParameterdvEXT(__ogl_framework_api, dlsym(handle, "glCullParameterdvEXT"));
-//    SET_CullParameterfvEXT(__ogl_framework_api, dlsym(handle, "glCullParameterfvEXT"));
-
-    /* GL_EXT_fog_coord */
-    SET_FogCoordPointerEXT(__ogl_framework_api, dlsym(handle, "glFogCoordPointerEXT"));
-    SET_FogCoorddEXT(__ogl_framework_api, dlsym(handle, "glFogCoorddEXT"));
-    SET_FogCoorddvEXT(__ogl_framework_api, dlsym(handle, "glFogCoorddvEXT"));
-    SET_FogCoordfEXT(__ogl_framework_api, dlsym(handle, "glFogCoordfEXT"));
-    SET_FogCoordfvEXT(__ogl_framework_api, dlsym(handle, "glFogCoordfvEXT"));
-
-    /* GL_EXT_framebuffer_blit */
-    SET_BlitFramebufferEXT(__ogl_framework_api, dlsym(handle, "glBlitFramebufferEXT"));
-
-    /* GL_EXT_framebuffer_object */
-    SET_BindFramebufferEXT(__ogl_framework_api, dlsym(handle, "glBindFramebufferEXT"));
-    SET_BindRenderbufferEXT(__ogl_framework_api, dlsym(handle, "glBindRenderbufferEXT"));
-    SET_CheckFramebufferStatusEXT(__ogl_framework_api, dlsym(handle, "glCheckFramebufferStatusEXT"));
-    SET_DeleteFramebuffersEXT(__ogl_framework_api, dlsym(handle, "glDeleteFramebuffersEXT"));
-    SET_DeleteRenderbuffersEXT(__ogl_framework_api, dlsym(handle, "glDeleteRenderbuffersEXT"));
-    SET_FramebufferRenderbufferEXT(__ogl_framework_api, dlsym(handle, "glFramebufferRenderbufferEXT"));
-    SET_FramebufferTexture1DEXT(__ogl_framework_api, dlsym(handle, "glFramebufferTexture1DEXT"));
-    SET_FramebufferTexture2DEXT(__ogl_framework_api, dlsym(handle, "glFramebufferTexture2DEXT"));
-    SET_FramebufferTexture3DEXT(__ogl_framework_api, dlsym(handle, "glFramebufferTexture3DEXT"));
-    SET_GenerateMipmapEXT(__ogl_framework_api, dlsym(handle, "glGenerateMipmapEXT"));
-    SET_GenFramebuffersEXT(__ogl_framework_api, dlsym(handle, "glGenFramebuffersEXT"));
-    SET_GenRenderbuffersEXT(__ogl_framework_api, dlsym(handle, "glGenRenderbuffersEXT"));
-    SET_GetFramebufferAttachmentParameterivEXT(__ogl_framework_api, dlsym(handle, "glGetFramebufferAttachmentParameterivEXT"));
-    SET_GetRenderbufferParameterivEXT(__ogl_framework_api, dlsym(handle, "glGetRenderbufferParameterivEXT"));
-    SET_IsFramebufferEXT(__ogl_framework_api, dlsym(handle, "glIsFramebufferEXT"));
-    SET_IsRenderbufferEXT(__ogl_framework_api, dlsym(handle, "glIsRenderbufferEXT"));
-    SET_RenderbufferStorageEXT(__ogl_framework_api, dlsym(handle, "glRenderbufferStorageEXT"));
-
-    /* GL_EXT_gpu_program_parameters */
-    SET_ProgramEnvParameters4fvEXT(__ogl_framework_api, dlsym(handle, "glProgramEnvParameters4fvEXT"));
-    SET_ProgramLocalParameters4fvEXT(__ogl_framework_api, dlsym(handle, "glProgramLocalParameters4fvEXT"));
-
-    /* GL_EXT_multi_draw_arrays */
-    SET_MultiDrawArraysEXT(__ogl_framework_api, (void *)dlsym(handle, "glMultiDrawArraysEXT"));
-    SET_MultiDrawElementsEXT(__ogl_framework_api, dlsym(handle, "glMultiDrawElementsEXT"));
-
-    /* GL_EXT_point_parameters / GL_ARB_point_parameters */
-    if(dlsym(handle, "glPointParameterfEXT")) {
-        /* GL_EXT_point_parameters */
-        SET_PointParameterfEXT(__ogl_framework_api, dlsym(handle, "glPointParameterfEXT"));
-        SET_PointParameterfvEXT(__ogl_framework_api, dlsym(handle, "glPointParameterfvEXT"));
-    } else {
-        /* GL_ARB_point_parameters */
-        SET_PointParameterfEXT(__ogl_framework_api, dlsym(handle, "glPointParameterfARB"));
-        SET_PointParameterfvEXT(__ogl_framework_api, dlsym(handle, "glPointParameterfvARB"));
-    }
-
-    /* GL_EXT_polygon_offset */
-    SET_PolygonOffsetEXT(__ogl_framework_api, dlsym(handle, "glPolygonOffsetEXT"));
-
-    /* GL_EXT_secondary_color */
-    SET_SecondaryColor3bEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3bEXT"));
-    SET_SecondaryColor3bvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3bvEXT"));
-    SET_SecondaryColor3dEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3dEXT"));
-    SET_SecondaryColor3dvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3dvEXT"));
-    SET_SecondaryColor3fEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3fEXT"));
-    SET_SecondaryColor3fvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3fvEXT"));
-    SET_SecondaryColor3iEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3iEXT"));
-    SET_SecondaryColor3ivEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3ivEXT"));
-    SET_SecondaryColor3sEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3sEXT"));
-    SET_SecondaryColor3svEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3svEXT"));
-    SET_SecondaryColor3ubEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3ubEXT"));
-    SET_SecondaryColor3ubvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3ubvEXT"));
-    SET_SecondaryColor3uiEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3uiEXT"));
-    SET_SecondaryColor3uivEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3uivEXT"));
-    SET_SecondaryColor3usEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3usEXT"));
-    SET_SecondaryColor3usvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3usvEXT"));
-    SET_SecondaryColorPointerEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColorPointerEXT"));
-
-    /* GL_EXT_stencil_two_side */
-    SET_ActiveStencilFaceEXT(__ogl_framework_api, dlsym(handle, "glActiveStencilFaceEXT"));
-
-    /* GL_EXT_timer_query */
-    SET_GetQueryObjecti64vEXT(__ogl_framework_api, dlsym(handle, "glGetQueryObjecti64vEXT"));
-    SET_GetQueryObjectui64vEXT(__ogl_framework_api, dlsym(handle, "glGetQueryObjectui64vEXT"));
-
-    /* GL_EXT_vertex_array */
-    SET_ColorPointerEXT(__ogl_framework_api, dlsym(handle, "glColorPointerEXT"));
-    SET_EdgeFlagPointerEXT(__ogl_framework_api, dlsym(handle, "glEdgeFlagPointerEXT"));
-    SET_IndexPointerEXT(__ogl_framework_api, dlsym(handle, "glIndexPointerEXT"));
-    SET_NormalPointerEXT(__ogl_framework_api, dlsym(handle, "glNormalPointerEXT"));
-    SET_TexCoordPointerEXT(__ogl_framework_api, dlsym(handle, "glTexCoordPointerEXT"));
-    SET_VertexPointerEXT(__ogl_framework_api, dlsym(handle, "glVertexPointerEXT"));
-
-    /* GL_IBM_multimode_draw_arrays */
-    SET_MultiModeDrawArraysIBM(__ogl_framework_api, dlsym(handle, "glMultiModeDrawArraysIBM"));
-    SET_MultiModeDrawElementsIBM(__ogl_framework_api, dlsym(handle, "glMultiModeDrawElementsIBM"));
-
-    /* GL_MESA_resize_buffers */
-    SET_ResizeBuffersMESA(__ogl_framework_api, dlsym(handle, "glResizeBuffersMESA"));
-
-    /* GL_MESA_window_pos */
-    SET_WindowPos4dMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4dMESA"));
-    SET_WindowPos4dvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4dvMESA"));
-    SET_WindowPos4fMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4fMESA"));
-    SET_WindowPos4fvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4fvMESA"));
-    SET_WindowPos4iMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4iMESA"));
-    SET_WindowPos4ivMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4ivMESA"));
-    SET_WindowPos4sMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4sMESA"));
-    SET_WindowPos4svMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4svMESA"));
-
-    /* GL_NV_fence */
-    SET_DeleteFencesNV(__ogl_framework_api, dlsym(handle, "glDeleteFencesNV"));
-    SET_FinishFenceNV(__ogl_framework_api, dlsym(handle, "glFinishFenceNV"));
-    SET_GenFencesNV(__ogl_framework_api, dlsym(handle, "glGenFencesNV"));
-    SET_GetFenceivNV(__ogl_framework_api, dlsym(handle, "glGetFenceivNV"));
-    SET_IsFenceNV(__ogl_framework_api, dlsym(handle, "glIsFenceNV"));
-    SET_SetFenceNV(__ogl_framework_api, dlsym(handle, "glSetFenceNV"));
-    SET_TestFenceNV(__ogl_framework_api, dlsym(handle, "glTestFenceNV"));
-
-    /* GL_NV_fragment_program */
-    SET_GetProgramNamedParameterdvNV(__ogl_framework_api, dlsym(handle, "glGetProgramNamedParameterdvNV"));
-    SET_GetProgramNamedParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetProgramNamedParameterfvNV"));
-    SET_ProgramNamedParameter4dNV(__ogl_framework_api, dlsym(handle, "glProgramNamedParameter4dNV"));
-    SET_ProgramNamedParameter4dvNV(__ogl_framework_api, dlsym(handle, "glProgramNamedParameter4dvNV"));
-    SET_ProgramNamedParameter4fNV(__ogl_framework_api, dlsym(handle, "glProgramNamedParameter4fNV"));
-    SET_ProgramNamedParameter4fvNV(__ogl_framework_api, dlsym(handle, "glProgramNamedParameter4fvNV"));
-
-    /* GL_NV_geometry_program4 */
-    SET_FramebufferTextureLayerEXT(__ogl_framework_api, dlsym(handle, "glFramebufferTextureLayerEXT"));
-
-    /* GL_NV_point_sprite */
-    SET_PointParameteriNV(__ogl_framework_api, dlsym(handle, "glPointParameteriNV"));
-    SET_PointParameterivNV(__ogl_framework_api, dlsym(handle, "glPointParameterivNV"));
-
-    /* GL_NV_register_combiners */
-    SET_CombinerInputNV(__ogl_framework_api, dlsym(handle, "glCombinerInputNV"));
-    SET_CombinerOutputNV(__ogl_framework_api, dlsym(handle, "glCombinerOutputNV"));
-    SET_CombinerParameterfNV(__ogl_framework_api, dlsym(handle, "glCombinerParameterfNV"));
-    SET_CombinerParameterfvNV(__ogl_framework_api, dlsym(handle, "glCombinerParameterfvNV"));
-    SET_CombinerParameteriNV(__ogl_framework_api, dlsym(handle, "glCombinerParameteriNV"));
-    SET_CombinerParameterivNV(__ogl_framework_api, dlsym(handle, "glCombinerParameterivNV"));
-    SET_FinalCombinerInputNV(__ogl_framework_api, dlsym(handle, "glFinalCombinerInputNV"));
-    SET_GetCombinerInputParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetCombinerInputParameterfvNV"));
-    SET_GetCombinerInputParameterivNV(__ogl_framework_api, dlsym(handle, "glGetCombinerInputParameterivNV"));
-    SET_GetCombinerOutputParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetCombinerOutputParameterfvNV"));
-    SET_GetCombinerOutputParameterivNV(__ogl_framework_api, dlsym(handle, "glGetCombinerOutputParameterivNV"));
-    SET_GetFinalCombinerInputParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetFinalCombinerInputParameterfvNV"));
-    SET_GetFinalCombinerInputParameterivNV(__ogl_framework_api, dlsym(handle, "glGetFinalCombinerInputParameterivNV"));
-
-    /* GL_NV_vertex_array_range */
-    SET_FlushVertexArrayRangeNV(__ogl_framework_api, dlsym(handle, "glFlushVertexArrayRangeNV"));
-    SET_VertexArrayRangeNV(__ogl_framework_api, dlsym(handle, "glVertexArrayRangeNV"));
-
-    /* GL_NV_vertex_program */
-    SET_AreProgramsResidentNV(__ogl_framework_api, dlsym(handle, "glAreProgramsResidentNV"));
-    SET_BindProgramNV(__ogl_framework_api, dlsym(handle, "glBindProgramNV"));
-    SET_DeleteProgramsNV(__ogl_framework_api, dlsym(handle, "glDeleteProgramsNV"));
-    SET_ExecuteProgramNV(__ogl_framework_api, dlsym(handle, "glExecuteProgramNV"));
-    SET_GenProgramsNV(__ogl_framework_api, dlsym(handle, "glGenProgramsNV"));
-    SET_GetProgramParameterdvNV(__ogl_framework_api, dlsym(handle, "glGetProgramParameterdvNV"));
-    SET_GetProgramParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetProgramParameterfvNV"));
-    SET_GetProgramStringNV(__ogl_framework_api, dlsym(handle, "glGetProgramStringNV"));
-    SET_GetProgramivNV(__ogl_framework_api, dlsym(handle, "glGetProgramivNV"));
-    SET_GetTrackMatrixivNV(__ogl_framework_api, dlsym(handle, "glGetTrackMatrixivNV"));
-    SET_GetVertexAttribPointervNV(__ogl_framework_api, dlsym(handle, "glGetVertexAttribPointervNV"));
-    SET_GetVertexAttribdvNV(__ogl_framework_api, dlsym(handle, "glGetVertexAttribdvNV"));
-    SET_GetVertexAttribfvNV(__ogl_framework_api, dlsym(handle, "glGetVertexAttribfvNV"));
-    SET_GetVertexAttribivNV(__ogl_framework_api, dlsym(handle, "glGetVertexAttribivNV"));
-    SET_IsProgramNV(__ogl_framework_api, dlsym(handle, "glIsProgramNV"));
-    SET_LoadProgramNV(__ogl_framework_api, dlsym(handle, "glLoadProgramNV"));
-    SET_ProgramParameters4dvNV(__ogl_framework_api, dlsym(handle, "glProgramParameters4dvNV"));
-    SET_ProgramParameters4fvNV(__ogl_framework_api, dlsym(handle, "glProgramParameters4fvNV"));
-    SET_RequestResidentProgramsNV(__ogl_framework_api, dlsym(handle, "glRequestResidentProgramsNV"));
-    SET_TrackMatrixNV(__ogl_framework_api, dlsym(handle, "glTrackMatrixNV"));
-    SET_VertexAttrib1dNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1dNV"));
-    SET_VertexAttrib1dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1dvNV"));
-    SET_VertexAttrib1fNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1fNV"));
-    SET_VertexAttrib1fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1fvNV"));
-    SET_VertexAttrib1sNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1sNV"));
-    SET_VertexAttrib1svNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1svNV"));
-    SET_VertexAttrib2dNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2dNV"));
-    SET_VertexAttrib2dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2dvNV"));
-    SET_VertexAttrib2fNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2fNV"));
-    SET_VertexAttrib2fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2fvNV"));
-    SET_VertexAttrib2sNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2sNV"));
-    SET_VertexAttrib2svNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2svNV"));
-    SET_VertexAttrib3dNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3dNV"));
-    SET_VertexAttrib3dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3dvNV"));
-    SET_VertexAttrib3fNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3fNV"));
-    SET_VertexAttrib3fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3fvNV"));
-    SET_VertexAttrib3sNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3sNV"));
-    SET_VertexAttrib3svNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3svNV"));
-    SET_VertexAttrib4dNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4dNV"));
-    SET_VertexAttrib4dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4dvNV"));
-    SET_VertexAttrib4fNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4fNV"));
-    SET_VertexAttrib4fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4fvNV"));
-    SET_VertexAttrib4sNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4sNV"));
-    SET_VertexAttrib4svNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4svNV"));
-    SET_VertexAttrib4ubNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4ubNV"));
-    SET_VertexAttrib4ubvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4ubvNV"));
-    SET_VertexAttribPointerNV(__ogl_framework_api, dlsym(handle, "glVertexAttribPointerNV"));
-    SET_VertexAttribs1dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs1dvNV"));
-    SET_VertexAttribs1fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs1fvNV"));
-    SET_VertexAttribs1svNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs1svNV"));
-    SET_VertexAttribs2dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs2dvNV"));
-    SET_VertexAttribs2fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs2fvNV"));
-    SET_VertexAttribs2svNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs2svNV"));
-    SET_VertexAttribs3dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs3dvNV"));
-    SET_VertexAttribs3fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs3fvNV"));
-    SET_VertexAttribs3svNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs3svNV"));
-    SET_VertexAttribs4dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs4dvNV"));
-    SET_VertexAttribs4fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs4fvNV"));
-    SET_VertexAttribs4svNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs4svNV"));
-    SET_VertexAttribs4ubvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs4ubvNV"));
-
-    /* GL_SGIS_multisample */
-    SET_SampleMaskSGIS(__ogl_framework_api, dlsym(handle, "glSampleMaskSGIS"));
-    SET_SamplePatternSGIS(__ogl_framework_api, dlsym(handle, "glSamplePatternSGIS"));
-
-    /* GL_SGIS_pixel_texture */
-    SET_GetPixelTexGenParameterfvSGIS(__ogl_framework_api, dlsym(handle, "glGetPixelTexGenParameterfvSGIS"));
-    SET_GetPixelTexGenParameterivSGIS(__ogl_framework_api, dlsym(handle, "glGetPixelTexGenParameterivSGIS"));
-    SET_PixelTexGenParameterfSGIS(__ogl_framework_api, dlsym(handle, "glPixelTexGenParameterfSGIS"));
-    SET_PixelTexGenParameterfvSGIS(__ogl_framework_api, dlsym(handle, "glPixelTexGenParameterfvSGIS"));
-    SET_PixelTexGenParameteriSGIS(__ogl_framework_api, dlsym(handle, "glPixelTexGenParameteriSGIS"));
-    SET_PixelTexGenParameterivSGIS(__ogl_framework_api, dlsym(handle, "glPixelTexGenParameterivSGIS"));
-    SET_PixelTexGenSGIX(__ogl_framework_api, dlsym(handle, "glPixelTexGenSGIX"));
-
-    /* GL_EXT_separate_shader_objects */
-    SET_ActiveProgramEXT(__ogl_framework_api, dlsym(handle, "glActiveProgramEXT"));
-    SET_CreateShaderProgramEXT(__ogl_framework_api, dlsym(handle, "glCreateShaderProgramEXT"));
-    SET_UseShaderProgramEXT(__ogl_framework_api, dlsym(handle, "glUseShaderProgramEXT"));
-
-    /* GL_NV_conditional_render */
-    SET_BeginConditionalRenderNV(__ogl_framework_api, dlsym(handle, "glBeginConditionalRenderNV"));
-    SET_EndConditionalRenderNV(__ogl_framework_api, dlsym(handle, "glEndConditionalRenderNV"));
-
-    /* GL_EXT_transform_feedback */
-    SET_BeginTransformFeedbackEXT(__ogl_framework_api, dlsym(handle, "glBeginTransformFeedbackEXT"));
-    SET_EndTransformFeedbackEXT(__ogl_framework_api, dlsym(handle, "glEndTransformFeedbackEXT"));
-    SET_BindBufferBaseEXT(__ogl_framework_api, dlsym(handle, "glBindBufferBaseEXT"));
-    SET_BindBufferOffsetEXT(__ogl_framework_api, dlsym(handle, "glBindBufferOffsetEXT"));
-    SET_BindBufferRangeEXT(__ogl_framework_api, dlsym(handle, "glBindBufferRangeEXT"));
-    SET_TransformFeedbackVaryingsEXT(__ogl_framework_api, dlsym(handle, "glTransformFeedbackVaryingsEXT"));
-    SET_GetTransformFeedbackVaryingEXT(__ogl_framework_api, dlsym(handle, "glGetTransformFeedbackVaryingEXT"));
-
-    /* GL_EXT_gpu_shader4 */
-    SET_BindFragDataLocationEXT(__ogl_framework_api, dlsym(handle, "glBindFragDataLocationEXT"));
-    SET_GetFragDataLocationEXT(__ogl_framework_api, dlsym(handle, "glGetFragDataLocationEXT"));
-    SET_GetUniformuivEXT(__ogl_framework_api, dlsym(handle, "glGetUniformuivEXT"));
-    SET_Uniform1uiEXT(__ogl_framework_api, dlsym(handle, "glUniform1uiEXT"));
-    SET_Uniform1uivEXT(__ogl_framework_api, dlsym(handle, "glUniform1uivEXT"));
-    SET_Uniform2uiEXT(__ogl_framework_api, dlsym(handle, "glUniform2uiEXT"));
-    SET_Uniform2uivEXT(__ogl_framework_api, dlsym(handle, "glUniform2uivEXT"));
-    SET_Uniform3uiEXT(__ogl_framework_api, dlsym(handle, "glUniform3uiEXT"));
-    SET_Uniform3uivEXT(__ogl_framework_api, dlsym(handle, "glUniform3uivEXT"));
-    SET_Uniform4uiEXT(__ogl_framework_api, dlsym(handle, "glUniform4uiEXT"));
-    SET_Uniform4uivEXT(__ogl_framework_api, dlsym(handle, "glUniform4uivEXT"));
-
-    /* GL_ARB_sampler_objects */
-    SET_BindSampler(__ogl_framework_api, dlsym(handle, "glBindSampler"));
-    SET_DeleteSamplers(__ogl_framework_api, dlsym(handle, "glDeleteSamplers"));
-    SET_GenSamplers(__ogl_framework_api, dlsym(handle, "glGenSamplers"));
-    SET_GetSamplerParameterIiv(__ogl_framework_api, dlsym(handle, "glGetSamplerParameterIiv"));
-    SET_GetSamplerParameterIuiv(__ogl_framework_api, dlsym(handle, "glGetSamplerParameterIuiv"));
-    SET_GetSamplerParameterfv(__ogl_framework_api, dlsym(handle, "glGetSamplerParameterfv"));
-    SET_GetSamplerParameteriv(__ogl_framework_api, dlsym(handle, "glGetSamplerParameteriv"));
-    SET_IsSampler(__ogl_framework_api, dlsym(handle, "glIsSampler"));
-    SET_SamplerParameterIiv(__ogl_framework_api, dlsym(handle, "glSamplerParameterIiv"));
-    SET_SamplerParameterIuiv(__ogl_framework_api, dlsym(handle, "glSamplerParameterIuiv"));
-    SET_SamplerParameterf(__ogl_framework_api, dlsym(handle, "glSamplerParameterf"));
-    SET_SamplerParameterfv(__ogl_framework_api, dlsym(handle, "glSamplerParameterfv"));
-    SET_SamplerParameteri(__ogl_framework_api, dlsym(handle, "glSamplerParameteri"));
-    SET_SamplerParameteriv(__ogl_framework_api, dlsym(handle, "glSamplerParameteriv"));
-
-    /* GL_ARB_transform_feedback2 */
-    SET_BindTransformFeedback(__ogl_framework_api, dlsym(handle, "glBindTransformFeedback"));
-    SET_DeleteTransformFeedbacks(__ogl_framework_api, dlsym(handle, "glDeleteTransformFeedbacks"));
-    SET_DrawTransformFeedback(__ogl_framework_api, dlsym(handle, "glDrawTransformFeedback"));
-    SET_GenTransformFeedbacks(__ogl_framework_api, dlsym(handle, "glGenTransformFeedbacks"));
-    SET_IsTransformFeedback(__ogl_framework_api, dlsym(handle, "glIsTransformFeedback"));
-    SET_PauseTransformFeedback(__ogl_framework_api, dlsym(handle, "glPauseTransformFeedback"));
-    SET_ResumeTransformFeedback(__ogl_framework_api, dlsym(handle, "glResumeTransformFeedback"));
-
-    /* GL_ARB_vertex_array_object */
-    SET_BindVertexArray(__ogl_framework_api, dlsym(handle, "glBindVertexArray"));
-    SET_GenVertexArrays(__ogl_framework_api, dlsym(handle, "glGenVertexArrays"));
-
-    /* GL_ARB_draw_buffers_blend */
-    SET_BlendEquationSeparateiARB(__ogl_framework_api, dlsym(handle, "glBlendEquationSeparateiARB"));
-    SET_BlendEquationiARB(__ogl_framework_api, dlsym(handle, "glBlendEquationiARB"));
-    SET_BlendFuncSeparateiARB(__ogl_framework_api, dlsym(handle, "glBlendFuncSeparateiARB"));
-    SET_BlendFunciARB(__ogl_framework_api, dlsym(handle, "glBlendFunciARB"));
-
-    /* GL_APPLE_flush_buffer_range */
-    SET_BufferParameteriAPPLE(__ogl_framework_api, dlsym(handle, "glBufferParameteriAPPLE"));
-    SET_FlushMappedBufferRangeAPPLE(__ogl_framework_api, dlsym(handle, "glFlushMappedBufferRangeAPPLE"));
-
-    /* GL_ARB_color_buffer_float */
-    SET_ClampColorARB(__ogl_framework_api, dlsym(handle, "glClampColorARB"));
-
-    /* GL_EXT_texture_integer */
-    SET_ClearColorIiEXT(__ogl_framework_api, dlsym(handle, "glClearColorIiEXT"));
-    SET_ClearColorIuiEXT(__ogl_framework_api, dlsym(handle, "glClearColorIuiEXT"));
-    SET_TexParameterIivEXT(__ogl_framework_api, dlsym(handle, "glTexParameterIivEXT"));
-    SET_TexParameterIuivEXT(__ogl_framework_api, dlsym(handle, "glTexParameterIuivEXT"));
-    SET_GetTexParameterIivEXT(__ogl_framework_api, dlsym(handle, "glGetTexParameterIivEXT"));
-    SET_GetTexParameterIuivEXT(__ogl_framework_api, dlsym(handle, "glGetTexParameterIuivEXT"));
-
-    /* GL_ARB_ES2_compatibility */
-    SET_ClearDepthf(__ogl_framework_api, dlsym(handle, "glClearDepthf"));
-    SET_DepthRangef(__ogl_framework_api, dlsym(handle, "glDepthRangef"));
-    SET_GetShaderPrecisionFormat(__ogl_framework_api, dlsym(handle, "glGetShaderPrecisionFormat"));
-    SET_ReleaseShaderCompiler(__ogl_framework_api, dlsym(handle, "glReleaseShaderCompiler"));
-    SET_ShaderBinary(__ogl_framework_api, dlsym(handle, "glShaderBinary"));
-
-    /* GL_EXT_draw_buffers2 */
-    SET_ColorMaskIndexedEXT(__ogl_framework_api, dlsym(handle, "glColorMaskIndexedEXT"));
-    SET_DisableIndexedEXT(__ogl_framework_api, dlsym(handle, "glDisableIndexedEXT"));
-    SET_EnableIndexedEXT(__ogl_framework_api, dlsym(handle, "glEnableIndexedEXT"));
-    SET_GetBooleanIndexedvEXT(__ogl_framework_api, dlsym(handle, "glGetBooleanIndexedvEXT"));
-    SET_GetIntegerIndexedvEXT(__ogl_framework_api, dlsym(handle, "glGetIntegerIndexedvEXT"));
-    SET_IsEnabledIndexedEXT(__ogl_framework_api, dlsym(handle, "glIsEnabledIndexedEXT"));
-
-    /* GL_ARB_draw_instanced */
-    SET_DrawArraysInstancedARB(__ogl_framework_api, dlsym(handle, "glDrawArraysInstancedARB"));
-    SET_DrawElementsInstancedARB(__ogl_framework_api, dlsym(handle, "glDrawElementsInstancedARB"));
-
-    /* GL_ARB_geometry_shader4 */
-    SET_FramebufferTextureARB(__ogl_framework_api, dlsym(handle, "glFramebufferTextureARB"));
-    SET_FramebufferTextureFaceARB(__ogl_framework_api, dlsym(handle, "glFramebufferTextureFaceARB"));
-    SET_ProgramParameteriARB(__ogl_framework_api, dlsym(handle, "glProgramParameteriARB"));
-
-    /* GL_ARB_sync */
-    SET_ClientWaitSync(__ogl_framework_api, dlsym(handle, "glClientWaitSync"));
-    SET_DeleteSync(__ogl_framework_api, dlsym(handle, "glDeleteSync"));
-    SET_FenceSync(__ogl_framework_api, dlsym(handle, "glFenceSync"));
-    SET_GetInteger64v(__ogl_framework_api, dlsym(handle, "glGetInteger64v"));
-    SET_GetSynciv(__ogl_framework_api, dlsym(handle, "glGetSynciv"));
-    SET_IsSync(__ogl_framework_api, dlsym(handle, "glIsSync"));
-    SET_WaitSync(__ogl_framework_api, dlsym(handle, "glWaitSync"));
-
-    /* GL_ARB_copy_buffer */
-    SET_CopyBufferSubData(__ogl_framework_api, dlsym(handle, "glCopyBufferSubData"));
-
-    /* GL_ARB_draw_elements_base_vertex */
-    SET_DrawElementsBaseVertex(__ogl_framework_api, dlsym(handle, "glDrawElementsBaseVertex"));
-    SET_DrawElementsInstancedBaseVertex(__ogl_framework_api, dlsym(handle, "glDrawElementsInstancedBaseVertex"));
-    SET_DrawRangeElementsBaseVertex(__ogl_framework_api, dlsym(handle, "glDrawRangeElementsBaseVertex"));
-    SET_MultiDrawElementsBaseVertex(__ogl_framework_api, dlsym(handle, "glMultiDrawElementsBaseVertex"));
-
-    /* GL_ARB_map_buffer_range */
-    SET_FlushMappedBufferRange(__ogl_framework_api, dlsym(handle, "glFlushMappedBufferRange"));
-    SET_MapBufferRange(__ogl_framework_api, dlsym(handle, "glMapBufferRange"));
-
-    /* GL_ARB_robustness */
-    SET_GetGraphicsResetStatusARB(__ogl_framework_api, dlsym(handle, "glGetGraphicsResetStatusARB"));
-    SET_GetnColorTableARB(__ogl_framework_api, dlsym(handle, "glGetnColorTableARB"));
-    SET_GetnCompressedTexImageARB(__ogl_framework_api, dlsym(handle, "glGetnCompressedTexImageARB"));
-    SET_GetnConvolutionFilterARB(__ogl_framework_api, dlsym(handle, "glGetnConvolutionFilterARB"));
-    SET_GetnHistogramARB(__ogl_framework_api, dlsym(handle, "glGetnHistogramARB"));
-    SET_GetnMapdvARB(__ogl_framework_api, dlsym(handle, "glGetnMapdvARB"));
-    SET_GetnMapfvARB(__ogl_framework_api, dlsym(handle, "glGetnMapfvARB"));
-    SET_GetnMapivARB(__ogl_framework_api, dlsym(handle, "glGetnMapivARB"));
-    SET_GetnMinmaxARB(__ogl_framework_api, dlsym(handle, "glGetnMinmaxARB"));
-    SET_GetnPixelMapfvARB(__ogl_framework_api, dlsym(handle, "glGetnPixelMapfvARB"));
-    SET_GetnPixelMapuivARB(__ogl_framework_api, dlsym(handle, "glGetnPixelMapuivARB"));
-    SET_GetnPixelMapusvARB(__ogl_framework_api, dlsym(handle, "glGetnPixelMapusvARB"));
-    SET_GetnPolygonStippleARB(__ogl_framework_api, dlsym(handle, "glGetnPolygonStippleARB"));
-    SET_GetnSeparableFilterARB(__ogl_framework_api, dlsym(handle, "glGetnSeparableFilterARB"));
-    SET_GetnTexImageARB(__ogl_framework_api, dlsym(handle, "glGetnTexImageARB"));
-    SET_GetnUniformdvARB(__ogl_framework_api, dlsym(handle, "glGetnUniformdvARB"));
-    SET_GetnUniformfvARB(__ogl_framework_api, dlsym(handle, "glGetnUniformfvARB"));
-    SET_GetnUniformivARB(__ogl_framework_api, dlsym(handle, "glGetnUniformivARB"));
-    SET_GetnUniformuivARB(__ogl_framework_api, dlsym(handle, "glGetnUniformuivARB"));
-    SET_ReadnPixelsARB(__ogl_framework_api, dlsym(handle, "glReadnPixelsARB"));
-
-    /* GL_APPLE_object_purgeable */
-    SET_GetObjectParameterivAPPLE(__ogl_framework_api, dlsym(handle, "glGetObjectParameterivAPPLE"));
-    SET_ObjectPurgeableAPPLE(__ogl_framework_api, dlsym(handle, "glObjectPurgeableAPPLE"));
-    SET_ObjectUnpurgeableAPPLE(__ogl_framework_api, dlsym(handle, "glObjectUnpurgeableAPPLE"));
-
-    /* GL_ATI_envmap_bumpmap */
-    SET_GetTexBumpParameterfvATI(__ogl_framework_api, dlsym(handle, "glGetTexBumpParameterfvATI"));
-    SET_GetTexBumpParameterivATI(__ogl_framework_api, dlsym(handle, "glGetTexBumpParameterivATI"));
-    SET_TexBumpParameterfvATI(__ogl_framework_api, dlsym(handle, "glTexBumpParameterfvATI"));
-    SET_TexBumpParameterivATI(__ogl_framework_api, dlsym(handle, "glTexBumpParameterivATI"));
-
-    /* GL_APPLE_texture_range */
-    SET_GetTexParameterPointervAPPLE(__ogl_framework_api, dlsym(handle, "glGetTexParameterPointervAPPLE"));
-    SET_TextureRangeAPPLE(__ogl_framework_api, dlsym(handle, "glTextureRangeAPPLE"));
-
-    /* GL_NV_vertex_program4 */
-    SET_GetVertexAttribIivEXT(__ogl_framework_api, dlsym(handle, "glGetVertexAttribIivEXT"));
-    SET_GetVertexAttribIuivEXT(__ogl_framework_api, dlsym(handle, "glGetVertexAttribIuivEXT"));
-    SET_VertexAttribDivisor(__ogl_framework_api, dlsym(handle, "glVertexAttribDivisor"));
-    SET_VertexAttribDivisorARB(__ogl_framework_api, dlsym(handle, "glVertexAttribDivisorARB"));
-    SET_VertexAttribI1iEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI1iEXT"));
-    SET_VertexAttribI1ivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI1ivEXT"));
-    SET_VertexAttribI1uiEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI1uiEXT"));
-    SET_VertexAttribI1uivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI1uivEXT"));
-    SET_VertexAttribI2iEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI2iEXT"));
-    SET_VertexAttribI2ivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI2ivEXT"));
-    SET_VertexAttribI2uiEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI2uiEXT"));
-    SET_VertexAttribI2uivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI2uivEXT"));
-    SET_VertexAttribI3iEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI3iEXT"));
-    SET_VertexAttribI3ivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI3ivEXT"));
-    SET_VertexAttribI3uiEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI3uiEXT"));
-    SET_VertexAttribI3uivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI3uivEXT"));
-    SET_VertexAttribI4bvEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4bvEXT"));
-    SET_VertexAttribI4iEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4iEXT"));
-    SET_VertexAttribI4ivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4ivEXT"));
-    SET_VertexAttribI4svEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4svEXT"));
-    SET_VertexAttribI4ubvEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4ubvEXT"));
-    SET_VertexAttribI4uiEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4uiEXT"));
-    SET_VertexAttribI4uivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4uivEXT"));
-    SET_VertexAttribI4usvEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4usvEXT"));
-    SET_VertexAttribIPointerEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribIPointerEXT"));
-
-    /* GL_NV_primitive_restart */
-    SET_PrimitiveRestartIndexNV(__ogl_framework_api, dlsym(handle, "glPrimitiveRestartIndexNV"));
-    SET_PrimitiveRestartNV(__ogl_framework_api, dlsym(handle, "glPrimitiveRestartNV"));
-
-    /* GL_EXT_provoking_vertex */
-    SET_ProvokingVertexEXT(__ogl_framework_api, dlsym(handle, "glProvokingVertexEXT"));
-
-    /* GL_ARB_texture_buffer_object */
-    SET_TexBufferARB(__ogl_framework_api, dlsym(handle, "glTexBufferARB"));
-
-    /* GL_NV_texture_barrier */
-    SET_TextureBarrierNV(__ogl_framework_api, dlsym(handle, "glTextureBarrierNV"));
-
-    /* GL_ARB_framebuffer_object */
-    SET_RenderbufferStorageMultisample(__ogl_framework_api, dlsym(handle, "glRenderbufferStorageMultisample"));
-
-    /* GL_OES_EGL_image */
-    SET_EGLImageTargetRenderbufferStorageOES(__ogl_framework_api, dlsym(handle, "glEGLImageTargetRenderbufferStorageOES"));
-    SET_EGLImageTargetTexture2DOES(__ogl_framework_api, dlsym(handle, "glEGLImageTargetTexture2DOES"));
-
     __applegl_api = malloc(sizeof(struct _glapi_table));
     assert(__applegl_api);
     memcpy(__applegl_api, __ogl_framework_api, sizeof(struct _glapi_table));
commit 85937f4c0d4a78d3a11e3c1fa6148640f2a9ad7b
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Thu Jun 9 16:59:49 2011 -0700

    glapi: Add API that can create a _glapi_table from a dlfcn handle
    
    Example usage:
    
    void *handle = dlopen(opengl_library_path, RTLD_LOCAL);
    struct _glapi_table *disp = _glapi_create_table_from_handle(handle, "gl");
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/src/mapi/glapi/gen/Makefile b/src/mapi/glapi/gen/Makefile
index 7415bdc..3e101f3 100644
--- a/src/mapi/glapi/gen/Makefile
+++ b/src/mapi/glapi/gen/Makefile
@@ -16,7 +16,8 @@ MESA_GLAPI_OUTPUTS = \
 	$(MESA_GLAPI_DIR)/glapi_mapi_tmp.h \
 	$(MESA_GLAPI_DIR)/glprocs.h \
 	$(MESA_GLAPI_DIR)/glapitemp.h \
-	$(MESA_GLAPI_DIR)/glapitable.h
+	$(MESA_GLAPI_DIR)/glapitable.h \
+	$(MESA_GLAPI_DIR)/glapi_gentable.c
 
 MESA_GLAPI_ASM_OUTPUTS = \
 	$(MESA_GLAPI_DIR)/glapi_x86.S \
@@ -50,7 +51,8 @@ XORG_GLAPI_OUTPUTS = \
 	$(XORG_GLAPI_DIR)/glprocs.h \
 	$(XORG_GLAPI_DIR)/glapioffsets.h \
 	$(XORG_GLAPI_DIR)/glapitable.h \
-	$(XORG_GLAPI_DIR)/glapidispatch.h
+	$(XORG_GLAPI_DIR)/glapidispatch.h \
+	$(XORG_GLAPI_DIR)/glapi_gentable.c
 
 XORG_OUTPUTS = \
 	$(XORG_GLAPI_FILES) \
@@ -162,6 +164,9 @@ $(MESA_GLAPI_DIR)/glapitemp.h: gl_apitemp.py $(COMMON)
 $(MESA_GLAPI_DIR)/glapitable.h: gl_table.py $(COMMON)
 	$(PYTHON2) $(PYTHON_FLAGS) $< > $@
 
+$(MESA_GLAPI_DIR)/glapi_gentable.c: gl_gentable.py $(COMMON)
+	$(PYTHON2) $(PYTHON_FLAGS) $< > $@
+
 ######################################################################
 
 $(MESA_GLAPI_DIR)/glapi_x86.S: gl_x86_asm.py $(COMMON)
diff --git a/src/mapi/glapi/gen/gl_gentable.py b/src/mapi/glapi/gen/gl_gentable.py
new file mode 100644
index 0000000..0dfebf8
--- /dev/null
+++ b/src/mapi/glapi/gen/gl_gentable.py
@@ -0,0 +1,131 @@
+#!/usr/bin/env python
+
+# (C) Copyright IBM Corporation 2004, 2005
+# (C) Copyright Apple Inc. 2011
+# All Rights Reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# on the rights to use, copy, modify, merge, publish, distribute, sub
+# license, and/or sell copies of the Software, and to permit persons to whom
+# the Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
+# IBM AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+#
+# Authors:
+#    Jeremy Huddleston <jeremyhu at apple.com>
+#
+# Based on code ogiginally by:
+#    Ian Romanick <idr at us.ibm.com>
+
+import license
+import gl_XML, glX_XML
+import sys, getopt
+
+header = """
+#include <dlfcn.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+#include <GL/gl.h>
+
+#include "glapi.h"
+#include "glapitable.h"
+#include "main/dispatch.h"
+
+struct _glapi_table *
+_glapi_create_table_from_handle(void *handle, const char *symbol_prefix) {
+    struct _glapi_table *disp = calloc(1, sizeof(struct _glapi_table));
+    char symboln[512];
+
+    if(!disp)
+         return NULL;
+"""
+
+footer = """
+    return disp;
+}
+"""
+
+body_template = """
+    if(!disp->%(name)s) {
+         snprintf(symboln, sizeof(symboln), "%%s%(entry_point)s", symbol_prefix);
+         SET_%(name)s(disp, dlsym(handle, symboln));
+    }
+"""
+
+class PrintCode(gl_XML.gl_print_base):
+
+	def __init__(self):
+		gl_XML.gl_print_base.__init__(self)
+
+		self.name = "gl_gen_table.py (from Mesa)"
+		self.license = license.bsd_license_template % ( \
+"""Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
+(C) Copyright IBM Corporation 2004, 2005
+(C) Copyright Apple Inc 2011""", "BRIAN PAUL, IBM")
+
+		return
+
+
+	def get_stack_size(self, f):
+		size = 0
+		for p in f.parameterIterator():
+			if p.is_padding:
+				continue
+
+			size += p.get_stack_size()
+
+		return size
+
+
+	def printRealHeader(self):
+		print header
+		return
+
+
+	def printRealFooter(self):
+		print footer
+		return
+
+
+	def printBody(self, api):
+		for f in api.functionIterateByOffset():
+			for entry_point in f.entry_points:
+				vars = { 'entry_point' : entry_point,
+				         'name' : f.name }
+
+				print body_template % vars
+		return
+
+def show_usage():
+	print "Usage: %s [-f input_file_name]" % sys.argv[0]
+	sys.exit(1)
+
+if __name__ == '__main__':
+	file_name = "gl_API.xml"
+
+	try:
+		(args, trail) = getopt.getopt(sys.argv[1:], "m:f:")
+	except Exception,e:
+		show_usage()
+
+	for (arg,val) in args:
+		if arg == "-f":
+			file_name = val
+
+	printer = PrintCode()
+
+	api = gl_XML.parse_GL_API(file_name, glX_XML.glx_item_factory())
+	printer.Print(api)
diff --git a/src/mapi/glapi/glapi.h b/src/mapi/glapi/glapi.h
index e909cf8..35dffd7 100644
--- a/src/mapi/glapi/glapi.h
+++ b/src/mapi/glapi/glapi.h
@@ -159,6 +159,10 @@ _GLAPI_EXPORT const char *
 _glapi_get_proc_name(unsigned int offset);
 
 
+_GLAPI_EXPORT struct _glapi_table *
+_glapi_create_table_from_handle(void *handle, const char *symbol_prefix);
+
+
 _GLAPI_EXPORT unsigned long
 _glthread_GetID(void);
 
diff --git a/src/mapi/glapi/glapi_gentable.c b/src/mapi/glapi/glapi_gentable.c
new file mode 100644
index 0000000..7f09b41
--- /dev/null
+++ b/src/mapi/glapi/glapi_gentable.c
@@ -0,0 +1,7804 @@
+/* DO NOT EDIT - This file generated automatically by gl_gen_table.py (from Mesa) script */
+
+/*
+ * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
+ * (C) Copyright IBM Corporation 2004, 2005
+ * (C) Copyright Apple Inc 2011
+ * All Rights Reserved.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sub license,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
+ * BRIAN PAUL, IBM,
+ * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+
+#include <dlfcn.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+#include <GL/gl.h>
+
+#include "glapi.h"
+#include "glapitable.h"
+#include "main/dispatch.h"
+
+struct _glapi_table *
+_glapi_create_table_from_handle(void *handle, const char *symbol_prefix) {
+   struct _glapi_table *disp = calloc(1, sizeof(struct _glapi_table));
+   char symboln[512];
+
+   if(!disp)
+       return NULL;
+
+
+    if(!disp->NewList) {
+         snprintf(symboln, sizeof(symboln), "%sNewList", symbol_prefix);
+         SET_NewList(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EndList) {
+         snprintf(symboln, sizeof(symboln), "%sEndList", symbol_prefix);
+         SET_EndList(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CallList) {
+         snprintf(symboln, sizeof(symboln), "%sCallList", symbol_prefix);
+         SET_CallList(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CallLists) {
+         snprintf(symboln, sizeof(symboln), "%sCallLists", symbol_prefix);
+         SET_CallLists(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteLists) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteLists", symbol_prefix);
+         SET_DeleteLists(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenLists) {
+         snprintf(symboln, sizeof(symboln), "%sGenLists", symbol_prefix);
+         SET_GenLists(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ListBase) {
+         snprintf(symboln, sizeof(symboln), "%sListBase", symbol_prefix);
+         SET_ListBase(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Begin) {
+         snprintf(symboln, sizeof(symboln), "%sBegin", symbol_prefix);
+         SET_Begin(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Bitmap) {
+         snprintf(symboln, sizeof(symboln), "%sBitmap", symbol_prefix);
+         SET_Bitmap(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3b) {
+         snprintf(symboln, sizeof(symboln), "%sColor3b", symbol_prefix);
+         SET_Color3b(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3bv) {
+         snprintf(symboln, sizeof(symboln), "%sColor3bv", symbol_prefix);
+         SET_Color3bv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3d) {
+         snprintf(symboln, sizeof(symboln), "%sColor3d", symbol_prefix);
+         SET_Color3d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3dv) {
+         snprintf(symboln, sizeof(symboln), "%sColor3dv", symbol_prefix);
+         SET_Color3dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3f) {
+         snprintf(symboln, sizeof(symboln), "%sColor3f", symbol_prefix);
+         SET_Color3f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3fv) {
+         snprintf(symboln, sizeof(symboln), "%sColor3fv", symbol_prefix);
+         SET_Color3fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3i) {
+         snprintf(symboln, sizeof(symboln), "%sColor3i", symbol_prefix);
+         SET_Color3i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3iv) {
+         snprintf(symboln, sizeof(symboln), "%sColor3iv", symbol_prefix);
+         SET_Color3iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3s) {
+         snprintf(symboln, sizeof(symboln), "%sColor3s", symbol_prefix);
+         SET_Color3s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3sv) {
+         snprintf(symboln, sizeof(symboln), "%sColor3sv", symbol_prefix);
+         SET_Color3sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3ub) {
+         snprintf(symboln, sizeof(symboln), "%sColor3ub", symbol_prefix);
+         SET_Color3ub(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3ubv) {
+         snprintf(symboln, sizeof(symboln), "%sColor3ubv", symbol_prefix);
+         SET_Color3ubv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3ui) {
+         snprintf(symboln, sizeof(symboln), "%sColor3ui", symbol_prefix);
+         SET_Color3ui(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3uiv) {
+         snprintf(symboln, sizeof(symboln), "%sColor3uiv", symbol_prefix);
+         SET_Color3uiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3us) {
+         snprintf(symboln, sizeof(symboln), "%sColor3us", symbol_prefix);
+         SET_Color3us(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color3usv) {
+         snprintf(symboln, sizeof(symboln), "%sColor3usv", symbol_prefix);
+         SET_Color3usv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4b) {
+         snprintf(symboln, sizeof(symboln), "%sColor4b", symbol_prefix);
+         SET_Color4b(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4bv) {
+         snprintf(symboln, sizeof(symboln), "%sColor4bv", symbol_prefix);
+         SET_Color4bv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4d) {
+         snprintf(symboln, sizeof(symboln), "%sColor4d", symbol_prefix);
+         SET_Color4d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4dv) {
+         snprintf(symboln, sizeof(symboln), "%sColor4dv", symbol_prefix);
+         SET_Color4dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4f) {
+         snprintf(symboln, sizeof(symboln), "%sColor4f", symbol_prefix);
+         SET_Color4f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4fv) {
+         snprintf(symboln, sizeof(symboln), "%sColor4fv", symbol_prefix);
+         SET_Color4fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4i) {
+         snprintf(symboln, sizeof(symboln), "%sColor4i", symbol_prefix);
+         SET_Color4i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4iv) {
+         snprintf(symboln, sizeof(symboln), "%sColor4iv", symbol_prefix);
+         SET_Color4iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4s) {
+         snprintf(symboln, sizeof(symboln), "%sColor4s", symbol_prefix);
+         SET_Color4s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4sv) {
+         snprintf(symboln, sizeof(symboln), "%sColor4sv", symbol_prefix);
+         SET_Color4sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4ub) {
+         snprintf(symboln, sizeof(symboln), "%sColor4ub", symbol_prefix);
+         SET_Color4ub(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4ubv) {
+         snprintf(symboln, sizeof(symboln), "%sColor4ubv", symbol_prefix);
+         SET_Color4ubv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4ui) {
+         snprintf(symboln, sizeof(symboln), "%sColor4ui", symbol_prefix);
+         SET_Color4ui(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4uiv) {
+         snprintf(symboln, sizeof(symboln), "%sColor4uiv", symbol_prefix);
+         SET_Color4uiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4us) {
+         snprintf(symboln, sizeof(symboln), "%sColor4us", symbol_prefix);
+         SET_Color4us(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Color4usv) {
+         snprintf(symboln, sizeof(symboln), "%sColor4usv", symbol_prefix);
+         SET_Color4usv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EdgeFlag) {
+         snprintf(symboln, sizeof(symboln), "%sEdgeFlag", symbol_prefix);
+         SET_EdgeFlag(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EdgeFlagv) {
+         snprintf(symboln, sizeof(symboln), "%sEdgeFlagv", symbol_prefix);
+         SET_EdgeFlagv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->End) {
+         snprintf(symboln, sizeof(symboln), "%sEnd", symbol_prefix);
+         SET_End(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexd) {
+         snprintf(symboln, sizeof(symboln), "%sIndexd", symbol_prefix);
+         SET_Indexd(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexdv) {
+         snprintf(symboln, sizeof(symboln), "%sIndexdv", symbol_prefix);
+         SET_Indexdv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexf) {
+         snprintf(symboln, sizeof(symboln), "%sIndexf", symbol_prefix);
+         SET_Indexf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexfv) {
+         snprintf(symboln, sizeof(symboln), "%sIndexfv", symbol_prefix);
+         SET_Indexfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexi) {
+         snprintf(symboln, sizeof(symboln), "%sIndexi", symbol_prefix);
+         SET_Indexi(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexiv) {
+         snprintf(symboln, sizeof(symboln), "%sIndexiv", symbol_prefix);
+         SET_Indexiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexs) {
+         snprintf(symboln, sizeof(symboln), "%sIndexs", symbol_prefix);
+         SET_Indexs(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexsv) {
+         snprintf(symboln, sizeof(symboln), "%sIndexsv", symbol_prefix);
+         SET_Indexsv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3b) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3b", symbol_prefix);
+         SET_Normal3b(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3bv) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3bv", symbol_prefix);
+         SET_Normal3bv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3d) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3d", symbol_prefix);
+         SET_Normal3d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3dv) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3dv", symbol_prefix);
+         SET_Normal3dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3f) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3f", symbol_prefix);
+         SET_Normal3f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3fv) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3fv", symbol_prefix);
+         SET_Normal3fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3i) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3i", symbol_prefix);
+         SET_Normal3i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3iv) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3iv", symbol_prefix);
+         SET_Normal3iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3s) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3s", symbol_prefix);
+         SET_Normal3s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Normal3sv) {
+         snprintf(symboln, sizeof(symboln), "%sNormal3sv", symbol_prefix);
+         SET_Normal3sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos2d) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos2d", symbol_prefix);
+         SET_RasterPos2d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos2dv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos2dv", symbol_prefix);
+         SET_RasterPos2dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos2f) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos2f", symbol_prefix);
+         SET_RasterPos2f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos2fv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos2fv", symbol_prefix);
+         SET_RasterPos2fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos2i) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos2i", symbol_prefix);
+         SET_RasterPos2i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos2iv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos2iv", symbol_prefix);
+         SET_RasterPos2iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos2s) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos2s", symbol_prefix);
+         SET_RasterPos2s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos2sv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos2sv", symbol_prefix);
+         SET_RasterPos2sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos3d) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos3d", symbol_prefix);
+         SET_RasterPos3d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos3dv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos3dv", symbol_prefix);
+         SET_RasterPos3dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos3f) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos3f", symbol_prefix);
+         SET_RasterPos3f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos3fv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos3fv", symbol_prefix);
+         SET_RasterPos3fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos3i) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos3i", symbol_prefix);
+         SET_RasterPos3i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos3iv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos3iv", symbol_prefix);
+         SET_RasterPos3iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos3s) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos3s", symbol_prefix);
+         SET_RasterPos3s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos3sv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos3sv", symbol_prefix);
+         SET_RasterPos3sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos4d) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos4d", symbol_prefix);
+         SET_RasterPos4d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos4dv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos4dv", symbol_prefix);
+         SET_RasterPos4dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos4f) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos4f", symbol_prefix);
+         SET_RasterPos4f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos4fv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos4fv", symbol_prefix);
+         SET_RasterPos4fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos4i) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos4i", symbol_prefix);
+         SET_RasterPos4i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos4iv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos4iv", symbol_prefix);
+         SET_RasterPos4iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos4s) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos4s", symbol_prefix);
+         SET_RasterPos4s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RasterPos4sv) {
+         snprintf(symboln, sizeof(symboln), "%sRasterPos4sv", symbol_prefix);
+         SET_RasterPos4sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Rectd) {
+         snprintf(symboln, sizeof(symboln), "%sRectd", symbol_prefix);
+         SET_Rectd(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Rectdv) {
+         snprintf(symboln, sizeof(symboln), "%sRectdv", symbol_prefix);
+         SET_Rectdv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Rectf) {
+         snprintf(symboln, sizeof(symboln), "%sRectf", symbol_prefix);
+         SET_Rectf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Rectfv) {
+         snprintf(symboln, sizeof(symboln), "%sRectfv", symbol_prefix);
+         SET_Rectfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Recti) {
+         snprintf(symboln, sizeof(symboln), "%sRecti", symbol_prefix);
+         SET_Recti(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Rectiv) {
+         snprintf(symboln, sizeof(symboln), "%sRectiv", symbol_prefix);
+         SET_Rectiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Rects) {
+         snprintf(symboln, sizeof(symboln), "%sRects", symbol_prefix);
+         SET_Rects(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Rectsv) {
+         snprintf(symboln, sizeof(symboln), "%sRectsv", symbol_prefix);
+         SET_Rectsv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord1d) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord1d", symbol_prefix);
+         SET_TexCoord1d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord1dv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord1dv", symbol_prefix);
+         SET_TexCoord1dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord1f) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord1f", symbol_prefix);
+         SET_TexCoord1f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord1fv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord1fv", symbol_prefix);
+         SET_TexCoord1fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord1i) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord1i", symbol_prefix);
+         SET_TexCoord1i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord1iv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord1iv", symbol_prefix);
+         SET_TexCoord1iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord1s) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord1s", symbol_prefix);
+         SET_TexCoord1s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord1sv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord1sv", symbol_prefix);
+         SET_TexCoord1sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord2d) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord2d", symbol_prefix);
+         SET_TexCoord2d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord2dv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord2dv", symbol_prefix);
+         SET_TexCoord2dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord2f) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord2f", symbol_prefix);
+         SET_TexCoord2f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord2fv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord2fv", symbol_prefix);
+         SET_TexCoord2fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord2i) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord2i", symbol_prefix);
+         SET_TexCoord2i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord2iv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord2iv", symbol_prefix);
+         SET_TexCoord2iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord2s) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord2s", symbol_prefix);
+         SET_TexCoord2s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord2sv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord2sv", symbol_prefix);
+         SET_TexCoord2sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord3d) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord3d", symbol_prefix);
+         SET_TexCoord3d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord3dv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord3dv", symbol_prefix);
+         SET_TexCoord3dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord3f) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord3f", symbol_prefix);
+         SET_TexCoord3f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord3fv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord3fv", symbol_prefix);
+         SET_TexCoord3fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord3i) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord3i", symbol_prefix);
+         SET_TexCoord3i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord3iv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord3iv", symbol_prefix);
+         SET_TexCoord3iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord3s) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord3s", symbol_prefix);
+         SET_TexCoord3s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord3sv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord3sv", symbol_prefix);
+         SET_TexCoord3sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord4d) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord4d", symbol_prefix);
+         SET_TexCoord4d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord4dv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord4dv", symbol_prefix);
+         SET_TexCoord4dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord4f) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord4f", symbol_prefix);
+         SET_TexCoord4f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord4fv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord4fv", symbol_prefix);
+         SET_TexCoord4fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord4i) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord4i", symbol_prefix);
+         SET_TexCoord4i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord4iv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord4iv", symbol_prefix);
+         SET_TexCoord4iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord4s) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord4s", symbol_prefix);
+         SET_TexCoord4s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoord4sv) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoord4sv", symbol_prefix);
+         SET_TexCoord4sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex2d) {
+         snprintf(symboln, sizeof(symboln), "%sVertex2d", symbol_prefix);
+         SET_Vertex2d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex2dv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex2dv", symbol_prefix);
+         SET_Vertex2dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex2f) {
+         snprintf(symboln, sizeof(symboln), "%sVertex2f", symbol_prefix);
+         SET_Vertex2f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex2fv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex2fv", symbol_prefix);
+         SET_Vertex2fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex2i) {
+         snprintf(symboln, sizeof(symboln), "%sVertex2i", symbol_prefix);
+         SET_Vertex2i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex2iv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex2iv", symbol_prefix);
+         SET_Vertex2iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex2s) {
+         snprintf(symboln, sizeof(symboln), "%sVertex2s", symbol_prefix);
+         SET_Vertex2s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex2sv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex2sv", symbol_prefix);
+         SET_Vertex2sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex3d) {
+         snprintf(symboln, sizeof(symboln), "%sVertex3d", symbol_prefix);
+         SET_Vertex3d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex3dv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex3dv", symbol_prefix);
+         SET_Vertex3dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex3f) {
+         snprintf(symboln, sizeof(symboln), "%sVertex3f", symbol_prefix);
+         SET_Vertex3f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex3fv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex3fv", symbol_prefix);
+         SET_Vertex3fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex3i) {
+         snprintf(symboln, sizeof(symboln), "%sVertex3i", symbol_prefix);
+         SET_Vertex3i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex3iv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex3iv", symbol_prefix);
+         SET_Vertex3iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex3s) {
+         snprintf(symboln, sizeof(symboln), "%sVertex3s", symbol_prefix);
+         SET_Vertex3s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex3sv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex3sv", symbol_prefix);
+         SET_Vertex3sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex4d) {
+         snprintf(symboln, sizeof(symboln), "%sVertex4d", symbol_prefix);
+         SET_Vertex4d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex4dv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex4dv", symbol_prefix);
+         SET_Vertex4dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex4f) {
+         snprintf(symboln, sizeof(symboln), "%sVertex4f", symbol_prefix);
+         SET_Vertex4f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex4fv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex4fv", symbol_prefix);
+         SET_Vertex4fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex4i) {
+         snprintf(symboln, sizeof(symboln), "%sVertex4i", symbol_prefix);
+         SET_Vertex4i(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex4iv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex4iv", symbol_prefix);
+         SET_Vertex4iv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex4s) {
+         snprintf(symboln, sizeof(symboln), "%sVertex4s", symbol_prefix);
+         SET_Vertex4s(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Vertex4sv) {
+         snprintf(symboln, sizeof(symboln), "%sVertex4sv", symbol_prefix);
+         SET_Vertex4sv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClipPlane) {
+         snprintf(symboln, sizeof(symboln), "%sClipPlane", symbol_prefix);
+         SET_ClipPlane(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorMaterial) {
+         snprintf(symboln, sizeof(symboln), "%sColorMaterial", symbol_prefix);
+         SET_ColorMaterial(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CullFace) {
+         snprintf(symboln, sizeof(symboln), "%sCullFace", symbol_prefix);
+         SET_CullFace(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Fogf) {
+         snprintf(symboln, sizeof(symboln), "%sFogf", symbol_prefix);
+         SET_Fogf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Fogfv) {
+         snprintf(symboln, sizeof(symboln), "%sFogfv", symbol_prefix);
+         SET_Fogfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Fogi) {
+         snprintf(symboln, sizeof(symboln), "%sFogi", symbol_prefix);
+         SET_Fogi(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Fogiv) {
+         snprintf(symboln, sizeof(symboln), "%sFogiv", symbol_prefix);
+         SET_Fogiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FrontFace) {
+         snprintf(symboln, sizeof(symboln), "%sFrontFace", symbol_prefix);
+         SET_FrontFace(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Hint) {
+         snprintf(symboln, sizeof(symboln), "%sHint", symbol_prefix);
+         SET_Hint(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Lightf) {
+         snprintf(symboln, sizeof(symboln), "%sLightf", symbol_prefix);
+         SET_Lightf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Lightfv) {
+         snprintf(symboln, sizeof(symboln), "%sLightfv", symbol_prefix);
+         SET_Lightfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Lighti) {
+         snprintf(symboln, sizeof(symboln), "%sLighti", symbol_prefix);
+         SET_Lighti(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Lightiv) {
+         snprintf(symboln, sizeof(symboln), "%sLightiv", symbol_prefix);
+         SET_Lightiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LightModelf) {
+         snprintf(symboln, sizeof(symboln), "%sLightModelf", symbol_prefix);
+         SET_LightModelf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LightModelfv) {
+         snprintf(symboln, sizeof(symboln), "%sLightModelfv", symbol_prefix);
+         SET_LightModelfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LightModeli) {
+         snprintf(symboln, sizeof(symboln), "%sLightModeli", symbol_prefix);
+         SET_LightModeli(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LightModeliv) {
+         snprintf(symboln, sizeof(symboln), "%sLightModeliv", symbol_prefix);
+         SET_LightModeliv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LineStipple) {
+         snprintf(symboln, sizeof(symboln), "%sLineStipple", symbol_prefix);
+         SET_LineStipple(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LineWidth) {
+         snprintf(symboln, sizeof(symboln), "%sLineWidth", symbol_prefix);
+         SET_LineWidth(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Materialf) {
+         snprintf(symboln, sizeof(symboln), "%sMaterialf", symbol_prefix);
+         SET_Materialf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Materialfv) {
+         snprintf(symboln, sizeof(symboln), "%sMaterialfv", symbol_prefix);
+         SET_Materialfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Materiali) {
+         snprintf(symboln, sizeof(symboln), "%sMateriali", symbol_prefix);
+         SET_Materiali(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Materialiv) {
+         snprintf(symboln, sizeof(symboln), "%sMaterialiv", symbol_prefix);
+         SET_Materialiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointSize) {
+         snprintf(symboln, sizeof(symboln), "%sPointSize", symbol_prefix);
+         SET_PointSize(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PolygonMode) {
+         snprintf(symboln, sizeof(symboln), "%sPolygonMode", symbol_prefix);
+         SET_PolygonMode(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PolygonStipple) {
+         snprintf(symboln, sizeof(symboln), "%sPolygonStipple", symbol_prefix);
+         SET_PolygonStipple(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Scissor) {
+         snprintf(symboln, sizeof(symboln), "%sScissor", symbol_prefix);
+         SET_Scissor(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ShadeModel) {
+         snprintf(symboln, sizeof(symboln), "%sShadeModel", symbol_prefix);
+         SET_ShadeModel(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexParameterf) {
+         snprintf(symboln, sizeof(symboln), "%sTexParameterf", symbol_prefix);
+         SET_TexParameterf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sTexParameterfv", symbol_prefix);
+         SET_TexParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexParameteri) {
+         snprintf(symboln, sizeof(symboln), "%sTexParameteri", symbol_prefix);
+         SET_TexParameteri(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sTexParameteriv", symbol_prefix);
+         SET_TexParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexImage1D) {
+         snprintf(symboln, sizeof(symboln), "%sTexImage1D", symbol_prefix);
+         SET_TexImage1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexImage2D) {
+         snprintf(symboln, sizeof(symboln), "%sTexImage2D", symbol_prefix);
+         SET_TexImage2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexEnvf) {
+         snprintf(symboln, sizeof(symboln), "%sTexEnvf", symbol_prefix);
+         SET_TexEnvf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexEnvfv) {
+         snprintf(symboln, sizeof(symboln), "%sTexEnvfv", symbol_prefix);
+         SET_TexEnvfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexEnvi) {
+         snprintf(symboln, sizeof(symboln), "%sTexEnvi", symbol_prefix);
+         SET_TexEnvi(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexEnviv) {
+         snprintf(symboln, sizeof(symboln), "%sTexEnviv", symbol_prefix);
+         SET_TexEnviv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexGend) {
+         snprintf(symboln, sizeof(symboln), "%sTexGend", symbol_prefix);
+         SET_TexGend(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexGendv) {
+         snprintf(symboln, sizeof(symboln), "%sTexGendv", symbol_prefix);
+         SET_TexGendv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexGenf) {
+         snprintf(symboln, sizeof(symboln), "%sTexGenf", symbol_prefix);
+         SET_TexGenf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexGenfv) {
+         snprintf(symboln, sizeof(symboln), "%sTexGenfv", symbol_prefix);
+         SET_TexGenfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexGeni) {
+         snprintf(symboln, sizeof(symboln), "%sTexGeni", symbol_prefix);
+         SET_TexGeni(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexGeniv) {
+         snprintf(symboln, sizeof(symboln), "%sTexGeniv", symbol_prefix);
+         SET_TexGeniv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FeedbackBuffer) {
+         snprintf(symboln, sizeof(symboln), "%sFeedbackBuffer", symbol_prefix);
+         SET_FeedbackBuffer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SelectBuffer) {
+         snprintf(symboln, sizeof(symboln), "%sSelectBuffer", symbol_prefix);
+         SET_SelectBuffer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RenderMode) {
+         snprintf(symboln, sizeof(symboln), "%sRenderMode", symbol_prefix);
+         SET_RenderMode(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->InitNames) {
+         snprintf(symboln, sizeof(symboln), "%sInitNames", symbol_prefix);
+         SET_InitNames(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LoadName) {
+         snprintf(symboln, sizeof(symboln), "%sLoadName", symbol_prefix);
+         SET_LoadName(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PassThrough) {
+         snprintf(symboln, sizeof(symboln), "%sPassThrough", symbol_prefix);
+         SET_PassThrough(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PopName) {
+         snprintf(symboln, sizeof(symboln), "%sPopName", symbol_prefix);
+         SET_PopName(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PushName) {
+         snprintf(symboln, sizeof(symboln), "%sPushName", symbol_prefix);
+         SET_PushName(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawBuffer) {
+         snprintf(symboln, sizeof(symboln), "%sDrawBuffer", symbol_prefix);
+         SET_DrawBuffer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Clear) {
+         snprintf(symboln, sizeof(symboln), "%sClear", symbol_prefix);
+         SET_Clear(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearAccum) {
+         snprintf(symboln, sizeof(symboln), "%sClearAccum", symbol_prefix);
+         SET_ClearAccum(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearIndex) {
+         snprintf(symboln, sizeof(symboln), "%sClearIndex", symbol_prefix);
+         SET_ClearIndex(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearColor) {
+         snprintf(symboln, sizeof(symboln), "%sClearColor", symbol_prefix);
+         SET_ClearColor(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearStencil) {
+         snprintf(symboln, sizeof(symboln), "%sClearStencil", symbol_prefix);
+         SET_ClearStencil(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearDepth) {
+         snprintf(symboln, sizeof(symboln), "%sClearDepth", symbol_prefix);
+         SET_ClearDepth(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->StencilMask) {
+         snprintf(symboln, sizeof(symboln), "%sStencilMask", symbol_prefix);
+         SET_StencilMask(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorMask) {
+         snprintf(symboln, sizeof(symboln), "%sColorMask", symbol_prefix);
+         SET_ColorMask(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DepthMask) {
+         snprintf(symboln, sizeof(symboln), "%sDepthMask", symbol_prefix);
+         SET_DepthMask(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IndexMask) {
+         snprintf(symboln, sizeof(symboln), "%sIndexMask", symbol_prefix);
+         SET_IndexMask(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Accum) {
+         snprintf(symboln, sizeof(symboln), "%sAccum", symbol_prefix);
+         SET_Accum(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Disable) {
+         snprintf(symboln, sizeof(symboln), "%sDisable", symbol_prefix);
+         SET_Disable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Enable) {
+         snprintf(symboln, sizeof(symboln), "%sEnable", symbol_prefix);
+         SET_Enable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Finish) {
+         snprintf(symboln, sizeof(symboln), "%sFinish", symbol_prefix);
+         SET_Finish(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Flush) {
+         snprintf(symboln, sizeof(symboln), "%sFlush", symbol_prefix);
+         SET_Flush(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PopAttrib) {
+         snprintf(symboln, sizeof(symboln), "%sPopAttrib", symbol_prefix);
+         SET_PopAttrib(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PushAttrib) {
+         snprintf(symboln, sizeof(symboln), "%sPushAttrib", symbol_prefix);
+         SET_PushAttrib(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Map1d) {
+         snprintf(symboln, sizeof(symboln), "%sMap1d", symbol_prefix);
+         SET_Map1d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Map1f) {
+         snprintf(symboln, sizeof(symboln), "%sMap1f", symbol_prefix);
+         SET_Map1f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Map2d) {
+         snprintf(symboln, sizeof(symboln), "%sMap2d", symbol_prefix);
+         SET_Map2d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Map2f) {
+         snprintf(symboln, sizeof(symboln), "%sMap2f", symbol_prefix);
+         SET_Map2f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MapGrid1d) {
+         snprintf(symboln, sizeof(symboln), "%sMapGrid1d", symbol_prefix);
+         SET_MapGrid1d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MapGrid1f) {
+         snprintf(symboln, sizeof(symboln), "%sMapGrid1f", symbol_prefix);
+         SET_MapGrid1f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MapGrid2d) {
+         snprintf(symboln, sizeof(symboln), "%sMapGrid2d", symbol_prefix);
+         SET_MapGrid2d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MapGrid2f) {
+         snprintf(symboln, sizeof(symboln), "%sMapGrid2f", symbol_prefix);
+         SET_MapGrid2f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalCoord1d) {
+         snprintf(symboln, sizeof(symboln), "%sEvalCoord1d", symbol_prefix);
+         SET_EvalCoord1d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalCoord1dv) {
+         snprintf(symboln, sizeof(symboln), "%sEvalCoord1dv", symbol_prefix);
+         SET_EvalCoord1dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalCoord1f) {
+         snprintf(symboln, sizeof(symboln), "%sEvalCoord1f", symbol_prefix);
+         SET_EvalCoord1f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalCoord1fv) {
+         snprintf(symboln, sizeof(symboln), "%sEvalCoord1fv", symbol_prefix);
+         SET_EvalCoord1fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalCoord2d) {
+         snprintf(symboln, sizeof(symboln), "%sEvalCoord2d", symbol_prefix);
+         SET_EvalCoord2d(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalCoord2dv) {
+         snprintf(symboln, sizeof(symboln), "%sEvalCoord2dv", symbol_prefix);
+         SET_EvalCoord2dv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalCoord2f) {
+         snprintf(symboln, sizeof(symboln), "%sEvalCoord2f", symbol_prefix);
+         SET_EvalCoord2f(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalCoord2fv) {
+         snprintf(symboln, sizeof(symboln), "%sEvalCoord2fv", symbol_prefix);
+         SET_EvalCoord2fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalMesh1) {
+         snprintf(symboln, sizeof(symboln), "%sEvalMesh1", symbol_prefix);
+         SET_EvalMesh1(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalPoint1) {
+         snprintf(symboln, sizeof(symboln), "%sEvalPoint1", symbol_prefix);
+         SET_EvalPoint1(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalMesh2) {
+         snprintf(symboln, sizeof(symboln), "%sEvalMesh2", symbol_prefix);
+         SET_EvalMesh2(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EvalPoint2) {
+         snprintf(symboln, sizeof(symboln), "%sEvalPoint2", symbol_prefix);
+         SET_EvalPoint2(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->AlphaFunc) {
+         snprintf(symboln, sizeof(symboln), "%sAlphaFunc", symbol_prefix);
+         SET_AlphaFunc(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendFunc) {
+         snprintf(symboln, sizeof(symboln), "%sBlendFunc", symbol_prefix);
+         SET_BlendFunc(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LogicOp) {
+         snprintf(symboln, sizeof(symboln), "%sLogicOp", symbol_prefix);
+         SET_LogicOp(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->StencilFunc) {
+         snprintf(symboln, sizeof(symboln), "%sStencilFunc", symbol_prefix);
+         SET_StencilFunc(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->StencilOp) {
+         snprintf(symboln, sizeof(symboln), "%sStencilOp", symbol_prefix);
+         SET_StencilOp(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DepthFunc) {
+         snprintf(symboln, sizeof(symboln), "%sDepthFunc", symbol_prefix);
+         SET_DepthFunc(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelZoom) {
+         snprintf(symboln, sizeof(symboln), "%sPixelZoom", symbol_prefix);
+         SET_PixelZoom(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelTransferf) {
+         snprintf(symboln, sizeof(symboln), "%sPixelTransferf", symbol_prefix);
+         SET_PixelTransferf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelTransferi) {
+         snprintf(symboln, sizeof(symboln), "%sPixelTransferi", symbol_prefix);
+         SET_PixelTransferi(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelStoref) {
+         snprintf(symboln, sizeof(symboln), "%sPixelStoref", symbol_prefix);
+         SET_PixelStoref(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelStorei) {
+         snprintf(symboln, sizeof(symboln), "%sPixelStorei", symbol_prefix);
+         SET_PixelStorei(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelMapfv) {
+         snprintf(symboln, sizeof(symboln), "%sPixelMapfv", symbol_prefix);
+         SET_PixelMapfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelMapuiv) {
+         snprintf(symboln, sizeof(symboln), "%sPixelMapuiv", symbol_prefix);
+         SET_PixelMapuiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelMapusv) {
+         snprintf(symboln, sizeof(symboln), "%sPixelMapusv", symbol_prefix);
+         SET_PixelMapusv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ReadBuffer) {
+         snprintf(symboln, sizeof(symboln), "%sReadBuffer", symbol_prefix);
+         SET_ReadBuffer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyPixels) {
+         snprintf(symboln, sizeof(symboln), "%sCopyPixels", symbol_prefix);
+         SET_CopyPixels(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ReadPixels) {
+         snprintf(symboln, sizeof(symboln), "%sReadPixels", symbol_prefix);
+         SET_ReadPixels(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawPixels) {
+         snprintf(symboln, sizeof(symboln), "%sDrawPixels", symbol_prefix);
+         SET_DrawPixels(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBooleanv) {
+         snprintf(symboln, sizeof(symboln), "%sGetBooleanv", symbol_prefix);
+         SET_GetBooleanv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetClipPlane) {
+         snprintf(symboln, sizeof(symboln), "%sGetClipPlane", symbol_prefix);
+         SET_GetClipPlane(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetDoublev) {
+         snprintf(symboln, sizeof(symboln), "%sGetDoublev", symbol_prefix);
+         SET_GetDoublev(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetError) {
+         snprintf(symboln, sizeof(symboln), "%sGetError", symbol_prefix);
+         SET_GetError(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetFloatv) {
+         snprintf(symboln, sizeof(symboln), "%sGetFloatv", symbol_prefix);
+         SET_GetFloatv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetIntegerv) {
+         snprintf(symboln, sizeof(symboln), "%sGetIntegerv", symbol_prefix);
+         SET_GetIntegerv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetLightfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetLightfv", symbol_prefix);
+         SET_GetLightfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetLightiv) {
+         snprintf(symboln, sizeof(symboln), "%sGetLightiv", symbol_prefix);
+         SET_GetLightiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMapdv) {
+         snprintf(symboln, sizeof(symboln), "%sGetMapdv", symbol_prefix);
+         SET_GetMapdv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMapfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetMapfv", symbol_prefix);
+         SET_GetMapfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMapiv) {
+         snprintf(symboln, sizeof(symboln), "%sGetMapiv", symbol_prefix);
+         SET_GetMapiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMaterialfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetMaterialfv", symbol_prefix);
+         SET_GetMaterialfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMaterialiv) {
+         snprintf(symboln, sizeof(symboln), "%sGetMaterialiv", symbol_prefix);
+         SET_GetMaterialiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetPixelMapfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetPixelMapfv", symbol_prefix);
+         SET_GetPixelMapfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetPixelMapuiv) {
+         snprintf(symboln, sizeof(symboln), "%sGetPixelMapuiv", symbol_prefix);
+         SET_GetPixelMapuiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetPixelMapusv) {
+         snprintf(symboln, sizeof(symboln), "%sGetPixelMapusv", symbol_prefix);
+         SET_GetPixelMapusv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetPolygonStipple) {
+         snprintf(symboln, sizeof(symboln), "%sGetPolygonStipple", symbol_prefix);
+         SET_GetPolygonStipple(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetString) {
+         snprintf(symboln, sizeof(symboln), "%sGetString", symbol_prefix);
+         SET_GetString(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexEnvfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexEnvfv", symbol_prefix);
+         SET_GetTexEnvfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexEnviv) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexEnviv", symbol_prefix);
+         SET_GetTexEnviv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexGendv) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexGendv", symbol_prefix);
+         SET_GetTexGendv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexGenfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexGenfv", symbol_prefix);
+         SET_GetTexGenfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexGeniv) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexGeniv", symbol_prefix);
+         SET_GetTexGeniv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexImage) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexImage", symbol_prefix);
+         SET_GetTexImage(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexParameterfv", symbol_prefix);
+         SET_GetTexParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexParameteriv", symbol_prefix);
+         SET_GetTexParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexLevelParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexLevelParameterfv", symbol_prefix);
+         SET_GetTexLevelParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexLevelParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexLevelParameteriv", symbol_prefix);
+         SET_GetTexLevelParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsEnabled) {
+         snprintf(symboln, sizeof(symboln), "%sIsEnabled", symbol_prefix);
+         SET_IsEnabled(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsList) {
+         snprintf(symboln, sizeof(symboln), "%sIsList", symbol_prefix);
+         SET_IsList(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DepthRange) {
+         snprintf(symboln, sizeof(symboln), "%sDepthRange", symbol_prefix);
+         SET_DepthRange(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Frustum) {
+         snprintf(symboln, sizeof(symboln), "%sFrustum", symbol_prefix);
+         SET_Frustum(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LoadIdentity) {
+         snprintf(symboln, sizeof(symboln), "%sLoadIdentity", symbol_prefix);
+         SET_LoadIdentity(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LoadMatrixf) {
+         snprintf(symboln, sizeof(symboln), "%sLoadMatrixf", symbol_prefix);
+         SET_LoadMatrixf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LoadMatrixd) {
+         snprintf(symboln, sizeof(symboln), "%sLoadMatrixd", symbol_prefix);
+         SET_LoadMatrixd(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MatrixMode) {
+         snprintf(symboln, sizeof(symboln), "%sMatrixMode", symbol_prefix);
+         SET_MatrixMode(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultMatrixf) {
+         snprintf(symboln, sizeof(symboln), "%sMultMatrixf", symbol_prefix);
+         SET_MultMatrixf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultMatrixd) {
+         snprintf(symboln, sizeof(symboln), "%sMultMatrixd", symbol_prefix);
+         SET_MultMatrixd(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Ortho) {
+         snprintf(symboln, sizeof(symboln), "%sOrtho", symbol_prefix);
+         SET_Ortho(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PopMatrix) {
+         snprintf(symboln, sizeof(symboln), "%sPopMatrix", symbol_prefix);
+         SET_PopMatrix(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PushMatrix) {
+         snprintf(symboln, sizeof(symboln), "%sPushMatrix", symbol_prefix);
+         SET_PushMatrix(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Rotated) {
+         snprintf(symboln, sizeof(symboln), "%sRotated", symbol_prefix);
+         SET_Rotated(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Rotatef) {
+         snprintf(symboln, sizeof(symboln), "%sRotatef", symbol_prefix);
+         SET_Rotatef(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Scaled) {
+         snprintf(symboln, sizeof(symboln), "%sScaled", symbol_prefix);
+         SET_Scaled(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Scalef) {
+         snprintf(symboln, sizeof(symboln), "%sScalef", symbol_prefix);
+         SET_Scalef(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Translated) {
+         snprintf(symboln, sizeof(symboln), "%sTranslated", symbol_prefix);
+         SET_Translated(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Translatef) {
+         snprintf(symboln, sizeof(symboln), "%sTranslatef", symbol_prefix);
+         SET_Translatef(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Viewport) {
+         snprintf(symboln, sizeof(symboln), "%sViewport", symbol_prefix);
+         SET_Viewport(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ArrayElement) {
+         snprintf(symboln, sizeof(symboln), "%sArrayElement", symbol_prefix);
+         SET_ArrayElement(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ArrayElement) {
+         snprintf(symboln, sizeof(symboln), "%sArrayElementEXT", symbol_prefix);
+         SET_ArrayElement(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindTexture) {
+         snprintf(symboln, sizeof(symboln), "%sBindTexture", symbol_prefix);
+         SET_BindTexture(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindTexture) {
+         snprintf(symboln, sizeof(symboln), "%sBindTextureEXT", symbol_prefix);
+         SET_BindTexture(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorPointer) {
+         snprintf(symboln, sizeof(symboln), "%sColorPointer", symbol_prefix);
+         SET_ColorPointer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DisableClientState) {
+         snprintf(symboln, sizeof(symboln), "%sDisableClientState", symbol_prefix);
+         SET_DisableClientState(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawArrays) {
+         snprintf(symboln, sizeof(symboln), "%sDrawArrays", symbol_prefix);
+         SET_DrawArrays(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawArrays) {
+         snprintf(symboln, sizeof(symboln), "%sDrawArraysEXT", symbol_prefix);
+         SET_DrawArrays(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawElements) {
+         snprintf(symboln, sizeof(symboln), "%sDrawElements", symbol_prefix);
+         SET_DrawElements(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EdgeFlagPointer) {
+         snprintf(symboln, sizeof(symboln), "%sEdgeFlagPointer", symbol_prefix);
+         SET_EdgeFlagPointer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EnableClientState) {
+         snprintf(symboln, sizeof(symboln), "%sEnableClientState", symbol_prefix);
+         SET_EnableClientState(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IndexPointer) {
+         snprintf(symboln, sizeof(symboln), "%sIndexPointer", symbol_prefix);
+         SET_IndexPointer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexub) {
+         snprintf(symboln, sizeof(symboln), "%sIndexub", symbol_prefix);
+         SET_Indexub(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Indexubv) {
+         snprintf(symboln, sizeof(symboln), "%sIndexubv", symbol_prefix);
+         SET_Indexubv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->InterleavedArrays) {
+         snprintf(symboln, sizeof(symboln), "%sInterleavedArrays", symbol_prefix);
+         SET_InterleavedArrays(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->NormalPointer) {
+         snprintf(symboln, sizeof(symboln), "%sNormalPointer", symbol_prefix);
+         SET_NormalPointer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PolygonOffset) {
+         snprintf(symboln, sizeof(symboln), "%sPolygonOffset", symbol_prefix);
+         SET_PolygonOffset(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoordPointer) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoordPointer", symbol_prefix);
+         SET_TexCoordPointer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexPointer) {
+         snprintf(symboln, sizeof(symboln), "%sVertexPointer", symbol_prefix);
+         SET_VertexPointer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->AreTexturesResident) {
+         snprintf(symboln, sizeof(symboln), "%sAreTexturesResident", symbol_prefix);
+         SET_AreTexturesResident(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->AreTexturesResident) {
+         snprintf(symboln, sizeof(symboln), "%sAreTexturesResidentEXT", symbol_prefix);
+         SET_AreTexturesResident(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexImage1D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexImage1D", symbol_prefix);
+         SET_CopyTexImage1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexImage1D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexImage1DEXT", symbol_prefix);
+         SET_CopyTexImage1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexImage2D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexImage2D", symbol_prefix);
+         SET_CopyTexImage2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexImage2D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexImage2DEXT", symbol_prefix);
+         SET_CopyTexImage2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexSubImage1D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage1D", symbol_prefix);
+         SET_CopyTexSubImage1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexSubImage1D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage1DEXT", symbol_prefix);
+         SET_CopyTexSubImage1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexSubImage2D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage2D", symbol_prefix);
+         SET_CopyTexSubImage2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexSubImage2D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage2DEXT", symbol_prefix);
+         SET_CopyTexSubImage2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteTextures) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteTextures", symbol_prefix);
+         SET_DeleteTextures(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteTextures) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteTexturesEXT", symbol_prefix);
+         SET_DeleteTextures(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenTextures) {
+         snprintf(symboln, sizeof(symboln), "%sGenTextures", symbol_prefix);
+         SET_GenTextures(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenTextures) {
+         snprintf(symboln, sizeof(symboln), "%sGenTexturesEXT", symbol_prefix);
+         SET_GenTextures(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetPointerv) {
+         snprintf(symboln, sizeof(symboln), "%sGetPointerv", symbol_prefix);
+         SET_GetPointerv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetPointerv) {
+         snprintf(symboln, sizeof(symboln), "%sGetPointervEXT", symbol_prefix);
+         SET_GetPointerv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsTexture) {
+         snprintf(symboln, sizeof(symboln), "%sIsTexture", symbol_prefix);
+         SET_IsTexture(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsTexture) {
+         snprintf(symboln, sizeof(symboln), "%sIsTextureEXT", symbol_prefix);
+         SET_IsTexture(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PrioritizeTextures) {
+         snprintf(symboln, sizeof(symboln), "%sPrioritizeTextures", symbol_prefix);
+         SET_PrioritizeTextures(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PrioritizeTextures) {
+         snprintf(symboln, sizeof(symboln), "%sPrioritizeTexturesEXT", symbol_prefix);
+         SET_PrioritizeTextures(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexSubImage1D) {
+         snprintf(symboln, sizeof(symboln), "%sTexSubImage1D", symbol_prefix);
+         SET_TexSubImage1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexSubImage1D) {
+         snprintf(symboln, sizeof(symboln), "%sTexSubImage1DEXT", symbol_prefix);
+         SET_TexSubImage1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexSubImage2D) {
+         snprintf(symboln, sizeof(symboln), "%sTexSubImage2D", symbol_prefix);
+         SET_TexSubImage2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexSubImage2D) {
+         snprintf(symboln, sizeof(symboln), "%sTexSubImage2DEXT", symbol_prefix);
+         SET_TexSubImage2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PopClientAttrib) {
+         snprintf(symboln, sizeof(symboln), "%sPopClientAttrib", symbol_prefix);
+         SET_PopClientAttrib(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PushClientAttrib) {
+         snprintf(symboln, sizeof(symboln), "%sPushClientAttrib", symbol_prefix);
+         SET_PushClientAttrib(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendColor) {
+         snprintf(symboln, sizeof(symboln), "%sBlendColor", symbol_prefix);
+         SET_BlendColor(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendColor) {
+         snprintf(symboln, sizeof(symboln), "%sBlendColorEXT", symbol_prefix);
+         SET_BlendColor(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendEquation) {
+         snprintf(symboln, sizeof(symboln), "%sBlendEquation", symbol_prefix);
+         SET_BlendEquation(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendEquation) {
+         snprintf(symboln, sizeof(symboln), "%sBlendEquationEXT", symbol_prefix);
+         SET_BlendEquation(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawRangeElements) {
+         snprintf(symboln, sizeof(symboln), "%sDrawRangeElements", symbol_prefix);
+         SET_DrawRangeElements(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawRangeElements) {
+         snprintf(symboln, sizeof(symboln), "%sDrawRangeElementsEXT", symbol_prefix);
+         SET_DrawRangeElements(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorTable) {
+         snprintf(symboln, sizeof(symboln), "%sColorTable", symbol_prefix);
+         SET_ColorTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorTable) {
+         snprintf(symboln, sizeof(symboln), "%sColorTableSGI", symbol_prefix);
+         SET_ColorTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorTable) {
+         snprintf(symboln, sizeof(symboln), "%sColorTableEXT", symbol_prefix);
+         SET_ColorTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorTableParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sColorTableParameterfv", symbol_prefix);
+         SET_ColorTableParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorTableParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sColorTableParameterfvSGI", symbol_prefix);
+         SET_ColorTableParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorTableParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sColorTableParameteriv", symbol_prefix);
+         SET_ColorTableParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorTableParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sColorTableParameterivSGI", symbol_prefix);
+         SET_ColorTableParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyColorTable) {
+         snprintf(symboln, sizeof(symboln), "%sCopyColorTable", symbol_prefix);
+         SET_CopyColorTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyColorTable) {
+         snprintf(symboln, sizeof(symboln), "%sCopyColorTableSGI", symbol_prefix);
+         SET_CopyColorTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetColorTable) {
+         snprintf(symboln, sizeof(symboln), "%sGetColorTable", symbol_prefix);
+         SET_GetColorTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetColorTable) {
+         snprintf(symboln, sizeof(symboln), "%sGetColorTableSGI", symbol_prefix);
+         SET_GetColorTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetColorTable) {
+         snprintf(symboln, sizeof(symboln), "%sGetColorTableEXT", symbol_prefix);
+         SET_GetColorTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetColorTableParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterfv", symbol_prefix);
+         SET_GetColorTableParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetColorTableParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterfvSGI", symbol_prefix);
+         SET_GetColorTableParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetColorTableParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterfvEXT", symbol_prefix);
+         SET_GetColorTableParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetColorTableParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetColorTableParameteriv", symbol_prefix);
+         SET_GetColorTableParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetColorTableParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterivSGI", symbol_prefix);
+         SET_GetColorTableParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetColorTableParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterivEXT", symbol_prefix);
+         SET_GetColorTableParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorSubTable) {
+         snprintf(symboln, sizeof(symboln), "%sColorSubTable", symbol_prefix);
+         SET_ColorSubTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorSubTable) {
+         snprintf(symboln, sizeof(symboln), "%sColorSubTableEXT", symbol_prefix);
+         SET_ColorSubTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyColorSubTable) {
+         snprintf(symboln, sizeof(symboln), "%sCopyColorSubTable", symbol_prefix);
+         SET_CopyColorSubTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyColorSubTable) {
+         snprintf(symboln, sizeof(symboln), "%sCopyColorSubTableEXT", symbol_prefix);
+         SET_CopyColorSubTable(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionFilter1D) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionFilter1D", symbol_prefix);
+         SET_ConvolutionFilter1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionFilter1D) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionFilter1DEXT", symbol_prefix);
+         SET_ConvolutionFilter1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionFilter2D) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionFilter2D", symbol_prefix);
+         SET_ConvolutionFilter2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionFilter2D) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionFilter2DEXT", symbol_prefix);
+         SET_ConvolutionFilter2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionParameterf) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionParameterf", symbol_prefix);
+         SET_ConvolutionParameterf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionParameterf) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionParameterfEXT", symbol_prefix);
+         SET_ConvolutionParameterf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionParameterfv", symbol_prefix);
+         SET_ConvolutionParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionParameterfvEXT", symbol_prefix);
+         SET_ConvolutionParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionParameteri) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionParameteri", symbol_prefix);
+         SET_ConvolutionParameteri(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionParameteri) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionParameteriEXT", symbol_prefix);
+         SET_ConvolutionParameteri(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionParameteriv", symbol_prefix);
+         SET_ConvolutionParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ConvolutionParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sConvolutionParameterivEXT", symbol_prefix);
+         SET_ConvolutionParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyConvolutionFilter1D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyConvolutionFilter1D", symbol_prefix);
+         SET_CopyConvolutionFilter1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyConvolutionFilter1D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyConvolutionFilter1DEXT", symbol_prefix);
+         SET_CopyConvolutionFilter1D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyConvolutionFilter2D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyConvolutionFilter2D", symbol_prefix);
+         SET_CopyConvolutionFilter2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyConvolutionFilter2D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyConvolutionFilter2DEXT", symbol_prefix);
+         SET_CopyConvolutionFilter2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetConvolutionFilter) {
+         snprintf(symboln, sizeof(symboln), "%sGetConvolutionFilter", symbol_prefix);
+         SET_GetConvolutionFilter(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetConvolutionFilter) {
+         snprintf(symboln, sizeof(symboln), "%sGetConvolutionFilterEXT", symbol_prefix);
+         SET_GetConvolutionFilter(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetConvolutionParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetConvolutionParameterfv", symbol_prefix);
+         SET_GetConvolutionParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetConvolutionParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetConvolutionParameterfvEXT", symbol_prefix);
+         SET_GetConvolutionParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetConvolutionParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetConvolutionParameteriv", symbol_prefix);
+         SET_GetConvolutionParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetConvolutionParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetConvolutionParameterivEXT", symbol_prefix);
+         SET_GetConvolutionParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetSeparableFilter) {
+         snprintf(symboln, sizeof(symboln), "%sGetSeparableFilter", symbol_prefix);
+         SET_GetSeparableFilter(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetSeparableFilter) {
+         snprintf(symboln, sizeof(symboln), "%sGetSeparableFilterEXT", symbol_prefix);
+         SET_GetSeparableFilter(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SeparableFilter2D) {
+         snprintf(symboln, sizeof(symboln), "%sSeparableFilter2D", symbol_prefix);
+         SET_SeparableFilter2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SeparableFilter2D) {
+         snprintf(symboln, sizeof(symboln), "%sSeparableFilter2DEXT", symbol_prefix);
+         SET_SeparableFilter2D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetHistogram) {
+         snprintf(symboln, sizeof(symboln), "%sGetHistogram", symbol_prefix);
+         SET_GetHistogram(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetHistogram) {
+         snprintf(symboln, sizeof(symboln), "%sGetHistogramEXT", symbol_prefix);
+         SET_GetHistogram(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetHistogramParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetHistogramParameterfv", symbol_prefix);
+         SET_GetHistogramParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetHistogramParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetHistogramParameterfvEXT", symbol_prefix);
+         SET_GetHistogramParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetHistogramParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetHistogramParameteriv", symbol_prefix);
+         SET_GetHistogramParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetHistogramParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetHistogramParameterivEXT", symbol_prefix);
+         SET_GetHistogramParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMinmax) {
+         snprintf(symboln, sizeof(symboln), "%sGetMinmax", symbol_prefix);
+         SET_GetMinmax(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMinmax) {
+         snprintf(symboln, sizeof(symboln), "%sGetMinmaxEXT", symbol_prefix);
+         SET_GetMinmax(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMinmaxParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetMinmaxParameterfv", symbol_prefix);
+         SET_GetMinmaxParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMinmaxParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetMinmaxParameterfvEXT", symbol_prefix);
+         SET_GetMinmaxParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMinmaxParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetMinmaxParameteriv", symbol_prefix);
+         SET_GetMinmaxParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetMinmaxParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetMinmaxParameterivEXT", symbol_prefix);
+         SET_GetMinmaxParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Histogram) {
+         snprintf(symboln, sizeof(symboln), "%sHistogram", symbol_prefix);
+         SET_Histogram(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Histogram) {
+         snprintf(symboln, sizeof(symboln), "%sHistogramEXT", symbol_prefix);
+         SET_Histogram(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Minmax) {
+         snprintf(symboln, sizeof(symboln), "%sMinmax", symbol_prefix);
+         SET_Minmax(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Minmax) {
+         snprintf(symboln, sizeof(symboln), "%sMinmaxEXT", symbol_prefix);
+         SET_Minmax(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ResetHistogram) {
+         snprintf(symboln, sizeof(symboln), "%sResetHistogram", symbol_prefix);
+         SET_ResetHistogram(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ResetHistogram) {
+         snprintf(symboln, sizeof(symboln), "%sResetHistogramEXT", symbol_prefix);
+         SET_ResetHistogram(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ResetMinmax) {
+         snprintf(symboln, sizeof(symboln), "%sResetMinmax", symbol_prefix);
+         SET_ResetMinmax(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ResetMinmax) {
+         snprintf(symboln, sizeof(symboln), "%sResetMinmaxEXT", symbol_prefix);
+         SET_ResetMinmax(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexImage3D) {
+         snprintf(symboln, sizeof(symboln), "%sTexImage3D", symbol_prefix);
+         SET_TexImage3D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexImage3D) {
+         snprintf(symboln, sizeof(symboln), "%sTexImage3DEXT", symbol_prefix);
+         SET_TexImage3D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexSubImage3D) {
+         snprintf(symboln, sizeof(symboln), "%sTexSubImage3D", symbol_prefix);
+         SET_TexSubImage3D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexSubImage3D) {
+         snprintf(symboln, sizeof(symboln), "%sTexSubImage3DEXT", symbol_prefix);
+         SET_TexSubImage3D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexSubImage3D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage3D", symbol_prefix);
+         SET_CopyTexSubImage3D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyTexSubImage3D) {
+         snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage3DEXT", symbol_prefix);
+         SET_CopyTexSubImage3D(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ActiveTextureARB) {
+         snprintf(symboln, sizeof(symboln), "%sActiveTexture", symbol_prefix);
+         SET_ActiveTextureARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ActiveTextureARB) {
+         snprintf(symboln, sizeof(symboln), "%sActiveTextureARB", symbol_prefix);
+         SET_ActiveTextureARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClientActiveTextureARB) {
+         snprintf(symboln, sizeof(symboln), "%sClientActiveTexture", symbol_prefix);
+         SET_ClientActiveTextureARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClientActiveTextureARB) {
+         snprintf(symboln, sizeof(symboln), "%sClientActiveTextureARB", symbol_prefix);
+         SET_ClientActiveTextureARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1dARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1d", symbol_prefix);
+         SET_MultiTexCoord1dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1dARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1dARB", symbol_prefix);
+         SET_MultiTexCoord1dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1dv", symbol_prefix);
+         SET_MultiTexCoord1dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1dvARB", symbol_prefix);
+         SET_MultiTexCoord1dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1fARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1f", symbol_prefix);
+         SET_MultiTexCoord1fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1fARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1fARB", symbol_prefix);
+         SET_MultiTexCoord1fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1fv", symbol_prefix);
+         SET_MultiTexCoord1fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1fvARB", symbol_prefix);
+         SET_MultiTexCoord1fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1iARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1i", symbol_prefix);
+         SET_MultiTexCoord1iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1iARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1iARB", symbol_prefix);
+         SET_MultiTexCoord1iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1iv", symbol_prefix);
+         SET_MultiTexCoord1ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1ivARB", symbol_prefix);
+         SET_MultiTexCoord1ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1sARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1s", symbol_prefix);
+         SET_MultiTexCoord1sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1sARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1sARB", symbol_prefix);
+         SET_MultiTexCoord1sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1svARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1sv", symbol_prefix);
+         SET_MultiTexCoord1svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord1svARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1svARB", symbol_prefix);
+         SET_MultiTexCoord1svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2dARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2d", symbol_prefix);
+         SET_MultiTexCoord2dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2dARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2dARB", symbol_prefix);
+         SET_MultiTexCoord2dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2dv", symbol_prefix);
+         SET_MultiTexCoord2dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2dvARB", symbol_prefix);
+         SET_MultiTexCoord2dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2fARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2f", symbol_prefix);
+         SET_MultiTexCoord2fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2fARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2fARB", symbol_prefix);
+         SET_MultiTexCoord2fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2fv", symbol_prefix);
+         SET_MultiTexCoord2fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2fvARB", symbol_prefix);
+         SET_MultiTexCoord2fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2iARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2i", symbol_prefix);
+         SET_MultiTexCoord2iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2iARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2iARB", symbol_prefix);
+         SET_MultiTexCoord2iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2iv", symbol_prefix);
+         SET_MultiTexCoord2ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2ivARB", symbol_prefix);
+         SET_MultiTexCoord2ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2sARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2s", symbol_prefix);
+         SET_MultiTexCoord2sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2sARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2sARB", symbol_prefix);
+         SET_MultiTexCoord2sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2svARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2sv", symbol_prefix);
+         SET_MultiTexCoord2svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord2svARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2svARB", symbol_prefix);
+         SET_MultiTexCoord2svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3dARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3d", symbol_prefix);
+         SET_MultiTexCoord3dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3dARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3dARB", symbol_prefix);
+         SET_MultiTexCoord3dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3dv", symbol_prefix);
+         SET_MultiTexCoord3dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3dvARB", symbol_prefix);
+         SET_MultiTexCoord3dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3fARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3f", symbol_prefix);
+         SET_MultiTexCoord3fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3fARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3fARB", symbol_prefix);
+         SET_MultiTexCoord3fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3fv", symbol_prefix);
+         SET_MultiTexCoord3fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3fvARB", symbol_prefix);
+         SET_MultiTexCoord3fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3iARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3i", symbol_prefix);
+         SET_MultiTexCoord3iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3iARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3iARB", symbol_prefix);
+         SET_MultiTexCoord3iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3iv", symbol_prefix);
+         SET_MultiTexCoord3ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3ivARB", symbol_prefix);
+         SET_MultiTexCoord3ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3sARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3s", symbol_prefix);
+         SET_MultiTexCoord3sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3sARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3sARB", symbol_prefix);
+         SET_MultiTexCoord3sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3svARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3sv", symbol_prefix);
+         SET_MultiTexCoord3svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord3svARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3svARB", symbol_prefix);
+         SET_MultiTexCoord3svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4dARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4d", symbol_prefix);
+         SET_MultiTexCoord4dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4dARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4dARB", symbol_prefix);
+         SET_MultiTexCoord4dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4dv", symbol_prefix);
+         SET_MultiTexCoord4dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4dvARB", symbol_prefix);
+         SET_MultiTexCoord4dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4fARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4f", symbol_prefix);
+         SET_MultiTexCoord4fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4fARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4fARB", symbol_prefix);
+         SET_MultiTexCoord4fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4fv", symbol_prefix);
+         SET_MultiTexCoord4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4fvARB", symbol_prefix);
+         SET_MultiTexCoord4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4iARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4i", symbol_prefix);
+         SET_MultiTexCoord4iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4iARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4iARB", symbol_prefix);
+         SET_MultiTexCoord4iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4iv", symbol_prefix);
+         SET_MultiTexCoord4ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4ivARB", symbol_prefix);
+         SET_MultiTexCoord4ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4sARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4s", symbol_prefix);
+         SET_MultiTexCoord4sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4sARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4sARB", symbol_prefix);
+         SET_MultiTexCoord4sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4svARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4sv", symbol_prefix);
+         SET_MultiTexCoord4svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiTexCoord4svARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4svARB", symbol_prefix);
+         SET_MultiTexCoord4svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->AttachShader) {
+         snprintf(symboln, sizeof(symboln), "%sAttachShader", symbol_prefix);
+         SET_AttachShader(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CreateProgram) {
+         snprintf(symboln, sizeof(symboln), "%sCreateProgram", symbol_prefix);
+         SET_CreateProgram(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CreateShader) {
+         snprintf(symboln, sizeof(symboln), "%sCreateShader", symbol_prefix);
+         SET_CreateShader(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteProgram) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteProgram", symbol_prefix);
+         SET_DeleteProgram(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteShader) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteShader", symbol_prefix);
+         SET_DeleteShader(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DetachShader) {
+         snprintf(symboln, sizeof(symboln), "%sDetachShader", symbol_prefix);
+         SET_DetachShader(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetAttachedShaders) {
+         snprintf(symboln, sizeof(symboln), "%sGetAttachedShaders", symbol_prefix);
+         SET_GetAttachedShaders(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramInfoLog) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramInfoLog", symbol_prefix);
+         SET_GetProgramInfoLog(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramiv) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramiv", symbol_prefix);
+         SET_GetProgramiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetShaderInfoLog) {
+         snprintf(symboln, sizeof(symboln), "%sGetShaderInfoLog", symbol_prefix);
+         SET_GetShaderInfoLog(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetShaderiv) {
+         snprintf(symboln, sizeof(symboln), "%sGetShaderiv", symbol_prefix);
+         SET_GetShaderiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsProgram) {
+         snprintf(symboln, sizeof(symboln), "%sIsProgram", symbol_prefix);
+         SET_IsProgram(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsShader) {
+         snprintf(symboln, sizeof(symboln), "%sIsShader", symbol_prefix);
+         SET_IsShader(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->StencilFuncSeparate) {
+         snprintf(symboln, sizeof(symboln), "%sStencilFuncSeparate", symbol_prefix);
+         SET_StencilFuncSeparate(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->StencilMaskSeparate) {
+         snprintf(symboln, sizeof(symboln), "%sStencilMaskSeparate", symbol_prefix);
+         SET_StencilMaskSeparate(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->StencilOpSeparate) {
+         snprintf(symboln, sizeof(symboln), "%sStencilOpSeparate", symbol_prefix);
+         SET_StencilOpSeparate(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->StencilOpSeparate) {
+         snprintf(symboln, sizeof(symboln), "%sStencilOpSeparateATI", symbol_prefix);
+         SET_StencilOpSeparate(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix2x3fv) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix2x3fv", symbol_prefix);
+         SET_UniformMatrix2x3fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix2x4fv) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix2x4fv", symbol_prefix);
+         SET_UniformMatrix2x4fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix3x2fv) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix3x2fv", symbol_prefix);
+         SET_UniformMatrix3x2fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix3x4fv) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix3x4fv", symbol_prefix);
+         SET_UniformMatrix3x4fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix4x2fv) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix4x2fv", symbol_prefix);
+         SET_UniformMatrix4x2fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix4x3fv) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix4x3fv", symbol_prefix);
+         SET_UniformMatrix4x3fv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClampColor) {
+         snprintf(symboln, sizeof(symboln), "%sClampColor", symbol_prefix);
+         SET_ClampColor(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearBufferfi) {
+         snprintf(symboln, sizeof(symboln), "%sClearBufferfi", symbol_prefix);
+         SET_ClearBufferfi(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearBufferfv) {
+         snprintf(symboln, sizeof(symboln), "%sClearBufferfv", symbol_prefix);
+         SET_ClearBufferfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearBufferiv) {
+         snprintf(symboln, sizeof(symboln), "%sClearBufferiv", symbol_prefix);
+         SET_ClearBufferiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearBufferuiv) {
+         snprintf(symboln, sizeof(symboln), "%sClearBufferuiv", symbol_prefix);
+         SET_ClearBufferuiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetStringi) {
+         snprintf(symboln, sizeof(symboln), "%sGetStringi", symbol_prefix);
+         SET_GetStringi(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexBuffer) {
+         snprintf(symboln, sizeof(symboln), "%sTexBuffer", symbol_prefix);
+         SET_TexBuffer(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTexture) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTexture", symbol_prefix);
+         SET_FramebufferTexture(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBufferParameteri64v) {
+         snprintf(symboln, sizeof(symboln), "%sGetBufferParameteri64v", symbol_prefix);
+         SET_GetBufferParameteri64v(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetInteger64i_v) {
+         snprintf(symboln, sizeof(symboln), "%sGetInteger64i_v", symbol_prefix);
+         SET_GetInteger64i_v(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribDivisor) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribDivisor", symbol_prefix);
+         SET_VertexAttribDivisor(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LoadTransposeMatrixdARB) {
+         snprintf(symboln, sizeof(symboln), "%sLoadTransposeMatrixd", symbol_prefix);
+         SET_LoadTransposeMatrixdARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LoadTransposeMatrixdARB) {
+         snprintf(symboln, sizeof(symboln), "%sLoadTransposeMatrixdARB", symbol_prefix);
+         SET_LoadTransposeMatrixdARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LoadTransposeMatrixfARB) {
+         snprintf(symboln, sizeof(symboln), "%sLoadTransposeMatrixf", symbol_prefix);
+         SET_LoadTransposeMatrixfARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LoadTransposeMatrixfARB) {
+         snprintf(symboln, sizeof(symboln), "%sLoadTransposeMatrixfARB", symbol_prefix);
+         SET_LoadTransposeMatrixfARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultTransposeMatrixdARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultTransposeMatrixd", symbol_prefix);
+         SET_MultTransposeMatrixdARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultTransposeMatrixdARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultTransposeMatrixdARB", symbol_prefix);
+         SET_MultTransposeMatrixdARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultTransposeMatrixfARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultTransposeMatrixf", symbol_prefix);
+         SET_MultTransposeMatrixfARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultTransposeMatrixfARB) {
+         snprintf(symboln, sizeof(symboln), "%sMultTransposeMatrixfARB", symbol_prefix);
+         SET_MultTransposeMatrixfARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SampleCoverageARB) {
+         snprintf(symboln, sizeof(symboln), "%sSampleCoverage", symbol_prefix);
+         SET_SampleCoverageARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SampleCoverageARB) {
+         snprintf(symboln, sizeof(symboln), "%sSampleCoverageARB", symbol_prefix);
+         SET_SampleCoverageARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexImage1DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexImage1D", symbol_prefix);
+         SET_CompressedTexImage1DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexImage1DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexImage1DARB", symbol_prefix);
+         SET_CompressedTexImage1DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexImage2DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexImage2D", symbol_prefix);
+         SET_CompressedTexImage2DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexImage2DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexImage2DARB", symbol_prefix);
+         SET_CompressedTexImage2DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexImage3DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexImage3D", symbol_prefix);
+         SET_CompressedTexImage3DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexImage3DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexImage3DARB", symbol_prefix);
+         SET_CompressedTexImage3DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexSubImage1DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage1D", symbol_prefix);
+         SET_CompressedTexSubImage1DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexSubImage1DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage1DARB", symbol_prefix);
+         SET_CompressedTexSubImage1DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexSubImage2DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage2D", symbol_prefix);
+         SET_CompressedTexSubImage2DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexSubImage2DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage2DARB", symbol_prefix);
+         SET_CompressedTexSubImage2DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexSubImage3DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage3D", symbol_prefix);
+         SET_CompressedTexSubImage3DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompressedTexSubImage3DARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage3DARB", symbol_prefix);
+         SET_CompressedTexSubImage3DARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetCompressedTexImageARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetCompressedTexImage", symbol_prefix);
+         SET_GetCompressedTexImageARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetCompressedTexImageARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetCompressedTexImageARB", symbol_prefix);
+         SET_GetCompressedTexImageARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DisableVertexAttribArrayARB) {
+         snprintf(symboln, sizeof(symboln), "%sDisableVertexAttribArray", symbol_prefix);
+         SET_DisableVertexAttribArrayARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DisableVertexAttribArrayARB) {
+         snprintf(symboln, sizeof(symboln), "%sDisableVertexAttribArrayARB", symbol_prefix);
+         SET_DisableVertexAttribArrayARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EnableVertexAttribArrayARB) {
+         snprintf(symboln, sizeof(symboln), "%sEnableVertexAttribArray", symbol_prefix);
+         SET_EnableVertexAttribArrayARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EnableVertexAttribArrayARB) {
+         snprintf(symboln, sizeof(symboln), "%sEnableVertexAttribArrayARB", symbol_prefix);
+         SET_EnableVertexAttribArrayARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramEnvParameterdvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramEnvParameterdvARB", symbol_prefix);
+         SET_GetProgramEnvParameterdvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramEnvParameterfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramEnvParameterfvARB", symbol_prefix);
+         SET_GetProgramEnvParameterfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramLocalParameterdvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramLocalParameterdvARB", symbol_prefix);
+         SET_GetProgramLocalParameterdvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramLocalParameterfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramLocalParameterfvARB", symbol_prefix);
+         SET_GetProgramLocalParameterfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramStringARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramStringARB", symbol_prefix);
+         SET_GetProgramStringARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramivARB", symbol_prefix);
+         SET_GetProgramivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribdvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribdv", symbol_prefix);
+         SET_GetVertexAttribdvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribdvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribdvARB", symbol_prefix);
+         SET_GetVertexAttribdvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribfv", symbol_prefix);
+         SET_GetVertexAttribfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribfvARB", symbol_prefix);
+         SET_GetVertexAttribfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribiv", symbol_prefix);
+         SET_GetVertexAttribivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribivARB", symbol_prefix);
+         SET_GetVertexAttribivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramEnvParameter4dARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramEnvParameter4dARB", symbol_prefix);
+         SET_ProgramEnvParameter4dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramEnvParameter4dARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramParameter4dNV", symbol_prefix);
+         SET_ProgramEnvParameter4dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramEnvParameter4dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramEnvParameter4dvARB", symbol_prefix);
+         SET_ProgramEnvParameter4dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramEnvParameter4dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramParameter4dvNV", symbol_prefix);
+         SET_ProgramEnvParameter4dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramEnvParameter4fARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramEnvParameter4fARB", symbol_prefix);
+         SET_ProgramEnvParameter4fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramEnvParameter4fARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramParameter4fNV", symbol_prefix);
+         SET_ProgramEnvParameter4fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramEnvParameter4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramEnvParameter4fvARB", symbol_prefix);
+         SET_ProgramEnvParameter4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramEnvParameter4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramParameter4fvNV", symbol_prefix);
+         SET_ProgramEnvParameter4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramLocalParameter4dARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramLocalParameter4dARB", symbol_prefix);
+         SET_ProgramLocalParameter4dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramLocalParameter4dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramLocalParameter4dvARB", symbol_prefix);
+         SET_ProgramLocalParameter4dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramLocalParameter4fARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramLocalParameter4fARB", symbol_prefix);
+         SET_ProgramLocalParameter4fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramLocalParameter4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramLocalParameter4fvARB", symbol_prefix);
+         SET_ProgramLocalParameter4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramStringARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramStringARB", symbol_prefix);
+         SET_ProgramStringARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1dARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1d", symbol_prefix);
+         SET_VertexAttrib1dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1dARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dARB", symbol_prefix);
+         SET_VertexAttrib1dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dv", symbol_prefix);
+         SET_VertexAttrib1dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dvARB", symbol_prefix);
+         SET_VertexAttrib1dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1fARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1f", symbol_prefix);
+         SET_VertexAttrib1fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1fARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fARB", symbol_prefix);
+         SET_VertexAttrib1fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fv", symbol_prefix);
+         SET_VertexAttrib1fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fvARB", symbol_prefix);
+         SET_VertexAttrib1fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1sARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1s", symbol_prefix);
+         SET_VertexAttrib1sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1sARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1sARB", symbol_prefix);
+         SET_VertexAttrib1sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1svARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1sv", symbol_prefix);
+         SET_VertexAttrib1svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1svARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1svARB", symbol_prefix);
+         SET_VertexAttrib1svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2dARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2d", symbol_prefix);
+         SET_VertexAttrib2dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2dARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dARB", symbol_prefix);
+         SET_VertexAttrib2dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dv", symbol_prefix);
+         SET_VertexAttrib2dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dvARB", symbol_prefix);
+         SET_VertexAttrib2dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2fARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2f", symbol_prefix);
+         SET_VertexAttrib2fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2fARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fARB", symbol_prefix);
+         SET_VertexAttrib2fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fv", symbol_prefix);
+         SET_VertexAttrib2fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fvARB", symbol_prefix);
+         SET_VertexAttrib2fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2sARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2s", symbol_prefix);
+         SET_VertexAttrib2sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2sARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2sARB", symbol_prefix);
+         SET_VertexAttrib2sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2svARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2sv", symbol_prefix);
+         SET_VertexAttrib2svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2svARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2svARB", symbol_prefix);
+         SET_VertexAttrib2svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3dARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3d", symbol_prefix);
+         SET_VertexAttrib3dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3dARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dARB", symbol_prefix);
+         SET_VertexAttrib3dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dv", symbol_prefix);
+         SET_VertexAttrib3dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dvARB", symbol_prefix);
+         SET_VertexAttrib3dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3fARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3f", symbol_prefix);
+         SET_VertexAttrib3fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3fARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fARB", symbol_prefix);
+         SET_VertexAttrib3fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fv", symbol_prefix);
+         SET_VertexAttrib3fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fvARB", symbol_prefix);
+         SET_VertexAttrib3fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3sARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3s", symbol_prefix);
+         SET_VertexAttrib3sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3sARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3sARB", symbol_prefix);
+         SET_VertexAttrib3sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3svARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3sv", symbol_prefix);
+         SET_VertexAttrib3svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3svARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3svARB", symbol_prefix);
+         SET_VertexAttrib3svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NbvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nbv", symbol_prefix);
+         SET_VertexAttrib4NbvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NbvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NbvARB", symbol_prefix);
+         SET_VertexAttrib4NbvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NivARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Niv", symbol_prefix);
+         SET_VertexAttrib4NivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NivARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NivARB", symbol_prefix);
+         SET_VertexAttrib4NivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NsvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nsv", symbol_prefix);
+         SET_VertexAttrib4NsvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NsvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NsvARB", symbol_prefix);
+         SET_VertexAttrib4NsvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NubARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nub", symbol_prefix);
+         SET_VertexAttrib4NubARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NubARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NubARB", symbol_prefix);
+         SET_VertexAttrib4NubARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NubvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nubv", symbol_prefix);
+         SET_VertexAttrib4NubvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NubvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NubvARB", symbol_prefix);
+         SET_VertexAttrib4NubvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NuivARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nuiv", symbol_prefix);
+         SET_VertexAttrib4NuivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NuivARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NuivARB", symbol_prefix);
+         SET_VertexAttrib4NuivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NusvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nusv", symbol_prefix);
+         SET_VertexAttrib4NusvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4NusvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NusvARB", symbol_prefix);
+         SET_VertexAttrib4NusvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4bvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4bv", symbol_prefix);
+         SET_VertexAttrib4bvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4bvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4bvARB", symbol_prefix);
+         SET_VertexAttrib4bvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4dARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4d", symbol_prefix);
+         SET_VertexAttrib4dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4dARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dARB", symbol_prefix);
+         SET_VertexAttrib4dARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dv", symbol_prefix);
+         SET_VertexAttrib4dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4dvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dvARB", symbol_prefix);
+         SET_VertexAttrib4dvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4fARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4f", symbol_prefix);
+         SET_VertexAttrib4fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4fARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fARB", symbol_prefix);
+         SET_VertexAttrib4fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fv", symbol_prefix);
+         SET_VertexAttrib4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fvARB", symbol_prefix);
+         SET_VertexAttrib4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4iv", symbol_prefix);
+         SET_VertexAttrib4ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ivARB", symbol_prefix);
+         SET_VertexAttrib4ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4sARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4s", symbol_prefix);
+         SET_VertexAttrib4sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4sARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4sARB", symbol_prefix);
+         SET_VertexAttrib4sARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4svARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4sv", symbol_prefix);
+         SET_VertexAttrib4svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4svARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4svARB", symbol_prefix);
+         SET_VertexAttrib4svARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4ubvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ubv", symbol_prefix);
+         SET_VertexAttrib4ubvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4ubvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ubvARB", symbol_prefix);
+         SET_VertexAttrib4ubvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4uivARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4uiv", symbol_prefix);
+         SET_VertexAttrib4uivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4uivARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4uivARB", symbol_prefix);
+         SET_VertexAttrib4uivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4usvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4usv", symbol_prefix);
+         SET_VertexAttrib4usvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4usvARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4usvARB", symbol_prefix);
+         SET_VertexAttrib4usvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribPointerARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribPointer", symbol_prefix);
+         SET_VertexAttribPointerARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribPointerARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribPointerARB", symbol_prefix);
+         SET_VertexAttribPointerARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindBufferARB) {
+         snprintf(symboln, sizeof(symboln), "%sBindBuffer", symbol_prefix);
+         SET_BindBufferARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindBufferARB) {
+         snprintf(symboln, sizeof(symboln), "%sBindBufferARB", symbol_prefix);
+         SET_BindBufferARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BufferDataARB) {
+         snprintf(symboln, sizeof(symboln), "%sBufferData", symbol_prefix);
+         SET_BufferDataARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BufferDataARB) {
+         snprintf(symboln, sizeof(symboln), "%sBufferDataARB", symbol_prefix);
+         SET_BufferDataARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BufferSubDataARB) {
+         snprintf(symboln, sizeof(symboln), "%sBufferSubData", symbol_prefix);
+         SET_BufferSubDataARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BufferSubDataARB) {
+         snprintf(symboln, sizeof(symboln), "%sBufferSubDataARB", symbol_prefix);
+         SET_BufferSubDataARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteBuffersARB) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteBuffers", symbol_prefix);
+         SET_DeleteBuffersARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteBuffersARB) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteBuffersARB", symbol_prefix);
+         SET_DeleteBuffersARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenBuffersARB) {
+         snprintf(symboln, sizeof(symboln), "%sGenBuffers", symbol_prefix);
+         SET_GenBuffersARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenBuffersARB) {
+         snprintf(symboln, sizeof(symboln), "%sGenBuffersARB", symbol_prefix);
+         SET_GenBuffersARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBufferParameterivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetBufferParameteriv", symbol_prefix);
+         SET_GetBufferParameterivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBufferParameterivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetBufferParameterivARB", symbol_prefix);
+         SET_GetBufferParameterivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBufferPointervARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetBufferPointerv", symbol_prefix);
+         SET_GetBufferPointervARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBufferPointervARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetBufferPointervARB", symbol_prefix);
+         SET_GetBufferPointervARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBufferSubDataARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetBufferSubData", symbol_prefix);
+         SET_GetBufferSubDataARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBufferSubDataARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetBufferSubDataARB", symbol_prefix);
+         SET_GetBufferSubDataARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsBufferARB) {
+         snprintf(symboln, sizeof(symboln), "%sIsBuffer", symbol_prefix);
+         SET_IsBufferARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsBufferARB) {
+         snprintf(symboln, sizeof(symboln), "%sIsBufferARB", symbol_prefix);
+         SET_IsBufferARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MapBufferARB) {
+         snprintf(symboln, sizeof(symboln), "%sMapBuffer", symbol_prefix);
+         SET_MapBufferARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MapBufferARB) {
+         snprintf(symboln, sizeof(symboln), "%sMapBufferARB", symbol_prefix);
+         SET_MapBufferARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UnmapBufferARB) {
+         snprintf(symboln, sizeof(symboln), "%sUnmapBuffer", symbol_prefix);
+         SET_UnmapBufferARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UnmapBufferARB) {
+         snprintf(symboln, sizeof(symboln), "%sUnmapBufferARB", symbol_prefix);
+         SET_UnmapBufferARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BeginQueryARB) {
+         snprintf(symboln, sizeof(symboln), "%sBeginQuery", symbol_prefix);
+         SET_BeginQueryARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BeginQueryARB) {
+         snprintf(symboln, sizeof(symboln), "%sBeginQueryARB", symbol_prefix);
+         SET_BeginQueryARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteQueriesARB) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteQueries", symbol_prefix);
+         SET_DeleteQueriesARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteQueriesARB) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteQueriesARB", symbol_prefix);
+         SET_DeleteQueriesARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EndQueryARB) {
+         snprintf(symboln, sizeof(symboln), "%sEndQuery", symbol_prefix);
+         SET_EndQueryARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EndQueryARB) {
+         snprintf(symboln, sizeof(symboln), "%sEndQueryARB", symbol_prefix);
+         SET_EndQueryARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenQueriesARB) {
+         snprintf(symboln, sizeof(symboln), "%sGenQueries", symbol_prefix);
+         SET_GenQueriesARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenQueriesARB) {
+         snprintf(symboln, sizeof(symboln), "%sGenQueriesARB", symbol_prefix);
+         SET_GenQueriesARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetQueryObjectivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetQueryObjectiv", symbol_prefix);
+         SET_GetQueryObjectivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetQueryObjectivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetQueryObjectivARB", symbol_prefix);
+         SET_GetQueryObjectivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetQueryObjectuivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetQueryObjectuiv", symbol_prefix);
+         SET_GetQueryObjectuivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetQueryObjectuivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetQueryObjectuivARB", symbol_prefix);
+         SET_GetQueryObjectuivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetQueryivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetQueryiv", symbol_prefix);
+         SET_GetQueryivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetQueryivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetQueryivARB", symbol_prefix);
+         SET_GetQueryivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsQueryARB) {
+         snprintf(symboln, sizeof(symboln), "%sIsQuery", symbol_prefix);
+         SET_IsQueryARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsQueryARB) {
+         snprintf(symboln, sizeof(symboln), "%sIsQueryARB", symbol_prefix);
+         SET_IsQueryARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->AttachObjectARB) {
+         snprintf(symboln, sizeof(symboln), "%sAttachObjectARB", symbol_prefix);
+         SET_AttachObjectARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompileShaderARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompileShader", symbol_prefix);
+         SET_CompileShaderARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CompileShaderARB) {
+         snprintf(symboln, sizeof(symboln), "%sCompileShaderARB", symbol_prefix);
+         SET_CompileShaderARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CreateProgramObjectARB) {
+         snprintf(symboln, sizeof(symboln), "%sCreateProgramObjectARB", symbol_prefix);
+         SET_CreateProgramObjectARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CreateShaderObjectARB) {
+         snprintf(symboln, sizeof(symboln), "%sCreateShaderObjectARB", symbol_prefix);
+         SET_CreateShaderObjectARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteObjectARB) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteObjectARB", symbol_prefix);
+         SET_DeleteObjectARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DetachObjectARB) {
+         snprintf(symboln, sizeof(symboln), "%sDetachObjectARB", symbol_prefix);
+         SET_DetachObjectARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetActiveUniformARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetActiveUniform", symbol_prefix);
+         SET_GetActiveUniformARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetActiveUniformARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetActiveUniformARB", symbol_prefix);
+         SET_GetActiveUniformARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetAttachedObjectsARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetAttachedObjectsARB", symbol_prefix);
+         SET_GetAttachedObjectsARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetHandleARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetHandleARB", symbol_prefix);
+         SET_GetHandleARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetInfoLogARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetInfoLogARB", symbol_prefix);
+         SET_GetInfoLogARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetObjectParameterfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetObjectParameterfvARB", symbol_prefix);
+         SET_GetObjectParameterfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetObjectParameterivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetObjectParameterivARB", symbol_prefix);
+         SET_GetObjectParameterivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetShaderSourceARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetShaderSource", symbol_prefix);
+         SET_GetShaderSourceARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetShaderSourceARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetShaderSourceARB", symbol_prefix);
+         SET_GetShaderSourceARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetUniformLocationARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetUniformLocation", symbol_prefix);
+         SET_GetUniformLocationARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetUniformLocationARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetUniformLocationARB", symbol_prefix);
+         SET_GetUniformLocationARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetUniformfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetUniformfv", symbol_prefix);
+         SET_GetUniformfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetUniformfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetUniformfvARB", symbol_prefix);
+         SET_GetUniformfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetUniformivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetUniformiv", symbol_prefix);
+         SET_GetUniformivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetUniformivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetUniformivARB", symbol_prefix);
+         SET_GetUniformivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LinkProgramARB) {
+         snprintf(symboln, sizeof(symboln), "%sLinkProgram", symbol_prefix);
+         SET_LinkProgramARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LinkProgramARB) {
+         snprintf(symboln, sizeof(symboln), "%sLinkProgramARB", symbol_prefix);
+         SET_LinkProgramARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ShaderSourceARB) {
+         snprintf(symboln, sizeof(symboln), "%sShaderSource", symbol_prefix);
+         SET_ShaderSourceARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ShaderSourceARB) {
+         snprintf(symboln, sizeof(symboln), "%sShaderSourceARB", symbol_prefix);
+         SET_ShaderSourceARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1fARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1f", symbol_prefix);
+         SET_Uniform1fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1fARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1fARB", symbol_prefix);
+         SET_Uniform1fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1fv", symbol_prefix);
+         SET_Uniform1fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1fvARB", symbol_prefix);
+         SET_Uniform1fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1iARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1i", symbol_prefix);
+         SET_Uniform1iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1iARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1iARB", symbol_prefix);
+         SET_Uniform1iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1iv", symbol_prefix);
+         SET_Uniform1ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1ivARB", symbol_prefix);
+         SET_Uniform1ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2fARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2f", symbol_prefix);
+         SET_Uniform2fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2fARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2fARB", symbol_prefix);
+         SET_Uniform2fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2fv", symbol_prefix);
+         SET_Uniform2fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2fvARB", symbol_prefix);
+         SET_Uniform2fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2iARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2i", symbol_prefix);
+         SET_Uniform2iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2iARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2iARB", symbol_prefix);
+         SET_Uniform2iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2iv", symbol_prefix);
+         SET_Uniform2ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2ivARB", symbol_prefix);
+         SET_Uniform2ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3fARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3f", symbol_prefix);
+         SET_Uniform3fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3fARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3fARB", symbol_prefix);
+         SET_Uniform3fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3fv", symbol_prefix);
+         SET_Uniform3fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3fvARB", symbol_prefix);
+         SET_Uniform3fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3iARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3i", symbol_prefix);
+         SET_Uniform3iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3iARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3iARB", symbol_prefix);
+         SET_Uniform3iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3iv", symbol_prefix);
+         SET_Uniform3ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3ivARB", symbol_prefix);
+         SET_Uniform3ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4fARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4f", symbol_prefix);
+         SET_Uniform4fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4fARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4fARB", symbol_prefix);
+         SET_Uniform4fARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4fv", symbol_prefix);
+         SET_Uniform4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4fvARB", symbol_prefix);
+         SET_Uniform4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4iARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4i", symbol_prefix);
+         SET_Uniform4iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4iARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4iARB", symbol_prefix);
+         SET_Uniform4iARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4iv", symbol_prefix);
+         SET_Uniform4ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4ivARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4ivARB", symbol_prefix);
+         SET_Uniform4ivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix2fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix2fv", symbol_prefix);
+         SET_UniformMatrix2fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix2fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix2fvARB", symbol_prefix);
+         SET_UniformMatrix2fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix3fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix3fv", symbol_prefix);
+         SET_UniformMatrix3fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix3fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix3fvARB", symbol_prefix);
+         SET_UniformMatrix3fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix4fv", symbol_prefix);
+         SET_UniformMatrix4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UniformMatrix4fvARB) {
+         snprintf(symboln, sizeof(symboln), "%sUniformMatrix4fvARB", symbol_prefix);
+         SET_UniformMatrix4fvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UseProgramObjectARB) {
+         snprintf(symboln, sizeof(symboln), "%sUseProgram", symbol_prefix);
+         SET_UseProgramObjectARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UseProgramObjectARB) {
+         snprintf(symboln, sizeof(symboln), "%sUseProgramObjectARB", symbol_prefix);
+         SET_UseProgramObjectARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ValidateProgramARB) {
+         snprintf(symboln, sizeof(symboln), "%sValidateProgram", symbol_prefix);
+         SET_ValidateProgramARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ValidateProgramARB) {
+         snprintf(symboln, sizeof(symboln), "%sValidateProgramARB", symbol_prefix);
+         SET_ValidateProgramARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindAttribLocationARB) {
+         snprintf(symboln, sizeof(symboln), "%sBindAttribLocation", symbol_prefix);
+         SET_BindAttribLocationARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindAttribLocationARB) {
+         snprintf(symboln, sizeof(symboln), "%sBindAttribLocationARB", symbol_prefix);
+         SET_BindAttribLocationARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetActiveAttribARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetActiveAttrib", symbol_prefix);
+         SET_GetActiveAttribARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetActiveAttribARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetActiveAttribARB", symbol_prefix);
+         SET_GetActiveAttribARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetAttribLocationARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetAttribLocation", symbol_prefix);
+         SET_GetAttribLocationARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetAttribLocationARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetAttribLocationARB", symbol_prefix);
+         SET_GetAttribLocationARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawBuffersARB) {
+         snprintf(symboln, sizeof(symboln), "%sDrawBuffers", symbol_prefix);
+         SET_DrawBuffersARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawBuffersARB) {
+         snprintf(symboln, sizeof(symboln), "%sDrawBuffersARB", symbol_prefix);
+         SET_DrawBuffersARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawBuffersARB) {
+         snprintf(symboln, sizeof(symboln), "%sDrawBuffersATI", symbol_prefix);
+         SET_DrawBuffersARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClampColorARB) {
+         snprintf(symboln, sizeof(symboln), "%sClampColorARB", symbol_prefix);
+         SET_ClampColorARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawArraysInstancedARB) {
+         snprintf(symboln, sizeof(symboln), "%sDrawArraysInstancedARB", symbol_prefix);
+         SET_DrawArraysInstancedARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawArraysInstancedARB) {
+         snprintf(symboln, sizeof(symboln), "%sDrawArraysInstancedEXT", symbol_prefix);
+         SET_DrawArraysInstancedARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawArraysInstancedARB) {
+         snprintf(symboln, sizeof(symboln), "%sDrawArraysInstanced", symbol_prefix);
+         SET_DrawArraysInstancedARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawElementsInstancedARB) {
+         snprintf(symboln, sizeof(symboln), "%sDrawElementsInstancedARB", symbol_prefix);
+         SET_DrawElementsInstancedARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawElementsInstancedARB) {
+         snprintf(symboln, sizeof(symboln), "%sDrawElementsInstancedEXT", symbol_prefix);
+         SET_DrawElementsInstancedARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawElementsInstancedARB) {
+         snprintf(symboln, sizeof(symboln), "%sDrawElementsInstanced", symbol_prefix);
+         SET_DrawElementsInstancedARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RenderbufferStorageMultisample) {
+         snprintf(symboln, sizeof(symboln), "%sRenderbufferStorageMultisample", symbol_prefix);
+         SET_RenderbufferStorageMultisample(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RenderbufferStorageMultisample) {
+         snprintf(symboln, sizeof(symboln), "%sRenderbufferStorageMultisampleEXT", symbol_prefix);
+         SET_RenderbufferStorageMultisample(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTextureARB) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTextureARB", symbol_prefix);
+         SET_FramebufferTextureARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTextureFaceARB) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTextureFaceARB", symbol_prefix);
+         SET_FramebufferTextureFaceARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramParameteriARB) {
+         snprintf(symboln, sizeof(symboln), "%sProgramParameteriARB", symbol_prefix);
+         SET_ProgramParameteriARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribDivisorARB) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribDivisorARB", symbol_prefix);
+         SET_VertexAttribDivisorARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FlushMappedBufferRange) {
+         snprintf(symboln, sizeof(symboln), "%sFlushMappedBufferRange", symbol_prefix);
+         SET_FlushMappedBufferRange(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MapBufferRange) {
+         snprintf(symboln, sizeof(symboln), "%sMapBufferRange", symbol_prefix);
+         SET_MapBufferRange(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexBufferARB) {
+         snprintf(symboln, sizeof(symboln), "%sTexBufferARB", symbol_prefix);
+         SET_TexBufferARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindVertexArray) {
+         snprintf(symboln, sizeof(symboln), "%sBindVertexArray", symbol_prefix);
+         SET_BindVertexArray(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenVertexArrays) {
+         snprintf(symboln, sizeof(symboln), "%sGenVertexArrays", symbol_prefix);
+         SET_GenVertexArrays(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CopyBufferSubData) {
+         snprintf(symboln, sizeof(symboln), "%sCopyBufferSubData", symbol_prefix);
+         SET_CopyBufferSubData(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClientWaitSync) {
+         snprintf(symboln, sizeof(symboln), "%sClientWaitSync", symbol_prefix);
+         SET_ClientWaitSync(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteSync) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteSync", symbol_prefix);
+         SET_DeleteSync(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FenceSync) {
+         snprintf(symboln, sizeof(symboln), "%sFenceSync", symbol_prefix);
+         SET_FenceSync(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetInteger64v) {
+         snprintf(symboln, sizeof(symboln), "%sGetInteger64v", symbol_prefix);
+         SET_GetInteger64v(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetSynciv) {
+         snprintf(symboln, sizeof(symboln), "%sGetSynciv", symbol_prefix);
+         SET_GetSynciv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsSync) {
+         snprintf(symboln, sizeof(symboln), "%sIsSync", symbol_prefix);
+         SET_IsSync(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WaitSync) {
+         snprintf(symboln, sizeof(symboln), "%sWaitSync", symbol_prefix);
+         SET_WaitSync(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawElementsBaseVertex) {
+         snprintf(symboln, sizeof(symboln), "%sDrawElementsBaseVertex", symbol_prefix);
+         SET_DrawElementsBaseVertex(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawElementsInstancedBaseVertex) {
+         snprintf(symboln, sizeof(symboln), "%sDrawElementsInstancedBaseVertex", symbol_prefix);
+         SET_DrawElementsInstancedBaseVertex(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawRangeElementsBaseVertex) {
+         snprintf(symboln, sizeof(symboln), "%sDrawRangeElementsBaseVertex", symbol_prefix);
+         SET_DrawRangeElementsBaseVertex(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiDrawElementsBaseVertex) {
+         snprintf(symboln, sizeof(symboln), "%sMultiDrawElementsBaseVertex", symbol_prefix);
+         SET_MultiDrawElementsBaseVertex(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendEquationSeparateiARB) {
+         snprintf(symboln, sizeof(symboln), "%sBlendEquationSeparateiARB", symbol_prefix);
+         SET_BlendEquationSeparateiARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendEquationSeparateiARB) {
+         snprintf(symboln, sizeof(symboln), "%sBlendEquationSeparateIndexedAMD", symbol_prefix);
+         SET_BlendEquationSeparateiARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendEquationiARB) {
+         snprintf(symboln, sizeof(symboln), "%sBlendEquationiARB", symbol_prefix);
+         SET_BlendEquationiARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendEquationiARB) {
+         snprintf(symboln, sizeof(symboln), "%sBlendEquationIndexedAMD", symbol_prefix);
+         SET_BlendEquationiARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendFuncSeparateiARB) {
+         snprintf(symboln, sizeof(symboln), "%sBlendFuncSeparateiARB", symbol_prefix);
+         SET_BlendFuncSeparateiARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendFuncSeparateiARB) {
+         snprintf(symboln, sizeof(symboln), "%sBlendFuncSeparateIndexedAMD", symbol_prefix);
+         SET_BlendFuncSeparateiARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendFunciARB) {
+         snprintf(symboln, sizeof(symboln), "%sBlendFunciARB", symbol_prefix);
+         SET_BlendFunciARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendFunciARB) {
+         snprintf(symboln, sizeof(symboln), "%sBlendFuncIndexedAMD", symbol_prefix);
+         SET_BlendFunciARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindSampler) {
+         snprintf(symboln, sizeof(symboln), "%sBindSampler", symbol_prefix);
+         SET_BindSampler(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteSamplers) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteSamplers", symbol_prefix);
+         SET_DeleteSamplers(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenSamplers) {
+         snprintf(symboln, sizeof(symboln), "%sGenSamplers", symbol_prefix);
+         SET_GenSamplers(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetSamplerParameterIiv) {
+         snprintf(symboln, sizeof(symboln), "%sGetSamplerParameterIiv", symbol_prefix);
+         SET_GetSamplerParameterIiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetSamplerParameterIuiv) {
+         snprintf(symboln, sizeof(symboln), "%sGetSamplerParameterIuiv", symbol_prefix);
+         SET_GetSamplerParameterIuiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetSamplerParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sGetSamplerParameterfv", symbol_prefix);
+         SET_GetSamplerParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetSamplerParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sGetSamplerParameteriv", symbol_prefix);
+         SET_GetSamplerParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsSampler) {
+         snprintf(symboln, sizeof(symboln), "%sIsSampler", symbol_prefix);
+         SET_IsSampler(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SamplerParameterIiv) {
+         snprintf(symboln, sizeof(symboln), "%sSamplerParameterIiv", symbol_prefix);
+         SET_SamplerParameterIiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SamplerParameterIuiv) {
+         snprintf(symboln, sizeof(symboln), "%sSamplerParameterIuiv", symbol_prefix);
+         SET_SamplerParameterIuiv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SamplerParameterf) {
+         snprintf(symboln, sizeof(symboln), "%sSamplerParameterf", symbol_prefix);
+         SET_SamplerParameterf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SamplerParameterfv) {
+         snprintf(symboln, sizeof(symboln), "%sSamplerParameterfv", symbol_prefix);
+         SET_SamplerParameterfv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SamplerParameteri) {
+         snprintf(symboln, sizeof(symboln), "%sSamplerParameteri", symbol_prefix);
+         SET_SamplerParameteri(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SamplerParameteriv) {
+         snprintf(symboln, sizeof(symboln), "%sSamplerParameteriv", symbol_prefix);
+         SET_SamplerParameteriv(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindTransformFeedback) {
+         snprintf(symboln, sizeof(symboln), "%sBindTransformFeedback", symbol_prefix);
+         SET_BindTransformFeedback(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteTransformFeedbacks) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteTransformFeedbacks", symbol_prefix);
+         SET_DeleteTransformFeedbacks(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DrawTransformFeedback) {
+         snprintf(symboln, sizeof(symboln), "%sDrawTransformFeedback", symbol_prefix);
+         SET_DrawTransformFeedback(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenTransformFeedbacks) {
+         snprintf(symboln, sizeof(symboln), "%sGenTransformFeedbacks", symbol_prefix);
+         SET_GenTransformFeedbacks(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsTransformFeedback) {
+         snprintf(symboln, sizeof(symboln), "%sIsTransformFeedback", symbol_prefix);
+         SET_IsTransformFeedback(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PauseTransformFeedback) {
+         snprintf(symboln, sizeof(symboln), "%sPauseTransformFeedback", symbol_prefix);
+         SET_PauseTransformFeedback(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ResumeTransformFeedback) {
+         snprintf(symboln, sizeof(symboln), "%sResumeTransformFeedback", symbol_prefix);
+         SET_ResumeTransformFeedback(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearDepthf) {
+         snprintf(symboln, sizeof(symboln), "%sClearDepthf", symbol_prefix);
+         SET_ClearDepthf(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DepthRangef) {
+         snprintf(symboln, sizeof(symboln), "%sDepthRangef", symbol_prefix);
+         SET_DepthRangef(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetShaderPrecisionFormat) {
+         snprintf(symboln, sizeof(symboln), "%sGetShaderPrecisionFormat", symbol_prefix);
+         SET_GetShaderPrecisionFormat(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ReleaseShaderCompiler) {
+         snprintf(symboln, sizeof(symboln), "%sReleaseShaderCompiler", symbol_prefix);
+         SET_ReleaseShaderCompiler(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ShaderBinary) {
+         snprintf(symboln, sizeof(symboln), "%sShaderBinary", symbol_prefix);
+         SET_ShaderBinary(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetGraphicsResetStatusARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetGraphicsResetStatusARB", symbol_prefix);
+         SET_GetGraphicsResetStatusARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnColorTableARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnColorTableARB", symbol_prefix);
+         SET_GetnColorTableARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnCompressedTexImageARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnCompressedTexImageARB", symbol_prefix);
+         SET_GetnCompressedTexImageARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnConvolutionFilterARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnConvolutionFilterARB", symbol_prefix);
+         SET_GetnConvolutionFilterARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnHistogramARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnHistogramARB", symbol_prefix);
+         SET_GetnHistogramARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnMapdvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnMapdvARB", symbol_prefix);
+         SET_GetnMapdvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnMapfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnMapfvARB", symbol_prefix);
+         SET_GetnMapfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnMapivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnMapivARB", symbol_prefix);
+         SET_GetnMapivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnMinmaxARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnMinmaxARB", symbol_prefix);
+         SET_GetnMinmaxARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnPixelMapfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnPixelMapfvARB", symbol_prefix);
+         SET_GetnPixelMapfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnPixelMapuivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnPixelMapuivARB", symbol_prefix);
+         SET_GetnPixelMapuivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnPixelMapusvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnPixelMapusvARB", symbol_prefix);
+         SET_GetnPixelMapusvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnPolygonStippleARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnPolygonStippleARB", symbol_prefix);
+         SET_GetnPolygonStippleARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnSeparableFilterARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnSeparableFilterARB", symbol_prefix);
+         SET_GetnSeparableFilterARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnTexImageARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnTexImageARB", symbol_prefix);
+         SET_GetnTexImageARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnUniformdvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnUniformdvARB", symbol_prefix);
+         SET_GetnUniformdvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnUniformfvARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnUniformfvARB", symbol_prefix);
+         SET_GetnUniformfvARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnUniformivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnUniformivARB", symbol_prefix);
+         SET_GetnUniformivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetnUniformuivARB) {
+         snprintf(symboln, sizeof(symboln), "%sGetnUniformuivARB", symbol_prefix);
+         SET_GetnUniformuivARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ReadnPixelsARB) {
+         snprintf(symboln, sizeof(symboln), "%sReadnPixelsARB", symbol_prefix);
+         SET_ReadnPixelsARB(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PolygonOffsetEXT) {
+         snprintf(symboln, sizeof(symboln), "%sPolygonOffsetEXT", symbol_prefix);
+         SET_PolygonOffsetEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetPixelTexGenParameterfvSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sGetPixelTexGenParameterfvSGIS", symbol_prefix);
+         SET_GetPixelTexGenParameterfvSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetPixelTexGenParameterivSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sGetPixelTexGenParameterivSGIS", symbol_prefix);
+         SET_GetPixelTexGenParameterivSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelTexGenParameterfSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sPixelTexGenParameterfSGIS", symbol_prefix);
+         SET_PixelTexGenParameterfSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelTexGenParameterfvSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sPixelTexGenParameterfvSGIS", symbol_prefix);
+         SET_PixelTexGenParameterfvSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelTexGenParameteriSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sPixelTexGenParameteriSGIS", symbol_prefix);
+         SET_PixelTexGenParameteriSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelTexGenParameterivSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sPixelTexGenParameterivSGIS", symbol_prefix);
+         SET_PixelTexGenParameterivSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SampleMaskSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sSampleMaskSGIS", symbol_prefix);
+         SET_SampleMaskSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SampleMaskSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sSampleMaskEXT", symbol_prefix);
+         SET_SampleMaskSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SamplePatternSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sSamplePatternSGIS", symbol_prefix);
+         SET_SamplePatternSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SamplePatternSGIS) {
+         snprintf(symboln, sizeof(symboln), "%sSamplePatternEXT", symbol_prefix);
+         SET_SamplePatternSGIS(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sColorPointerEXT", symbol_prefix);
+         SET_ColorPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EdgeFlagPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sEdgeFlagPointerEXT", symbol_prefix);
+         SET_EdgeFlagPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IndexPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sIndexPointerEXT", symbol_prefix);
+         SET_IndexPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->NormalPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sNormalPointerEXT", symbol_prefix);
+         SET_NormalPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexCoordPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sTexCoordPointerEXT", symbol_prefix);
+         SET_TexCoordPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexPointerEXT", symbol_prefix);
+         SET_VertexPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterfEXT) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameterf", symbol_prefix);
+         SET_PointParameterfEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterfEXT) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameterfARB", symbol_prefix);
+         SET_PointParameterfEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterfEXT) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameterfEXT", symbol_prefix);
+         SET_PointParameterfEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterfEXT) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameterfSGIS", symbol_prefix);
+         SET_PointParameterfEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterfvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameterfv", symbol_prefix);
+         SET_PointParameterfvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterfvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameterfvARB", symbol_prefix);
+         SET_PointParameterfvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterfvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameterfvEXT", symbol_prefix);
+         SET_PointParameterfvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterfvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameterfvSGIS", symbol_prefix);
+         SET_PointParameterfvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LockArraysEXT) {
+         snprintf(symboln, sizeof(symboln), "%sLockArraysEXT", symbol_prefix);
+         SET_LockArraysEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UnlockArraysEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUnlockArraysEXT", symbol_prefix);
+         SET_UnlockArraysEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3bEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3b", symbol_prefix);
+         SET_SecondaryColor3bEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3bEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3bEXT", symbol_prefix);
+         SET_SecondaryColor3bEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3bvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3bv", symbol_prefix);
+         SET_SecondaryColor3bvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3bvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3bvEXT", symbol_prefix);
+         SET_SecondaryColor3bvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3dEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3d", symbol_prefix);
+         SET_SecondaryColor3dEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3dEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3dEXT", symbol_prefix);
+         SET_SecondaryColor3dEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3dvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3dv", symbol_prefix);
+         SET_SecondaryColor3dvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3dvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3dvEXT", symbol_prefix);
+         SET_SecondaryColor3dvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3fEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3f", symbol_prefix);
+         SET_SecondaryColor3fEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3fEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3fEXT", symbol_prefix);
+         SET_SecondaryColor3fEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3fvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3fv", symbol_prefix);
+         SET_SecondaryColor3fvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3fvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3fvEXT", symbol_prefix);
+         SET_SecondaryColor3fvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3i", symbol_prefix);
+         SET_SecondaryColor3iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3iEXT", symbol_prefix);
+         SET_SecondaryColor3iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3iv", symbol_prefix);
+         SET_SecondaryColor3ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ivEXT", symbol_prefix);
+         SET_SecondaryColor3ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3sEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3s", symbol_prefix);
+         SET_SecondaryColor3sEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3sEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3sEXT", symbol_prefix);
+         SET_SecondaryColor3sEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3svEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3sv", symbol_prefix);
+         SET_SecondaryColor3svEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3svEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3svEXT", symbol_prefix);
+         SET_SecondaryColor3svEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3ubEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ub", symbol_prefix);
+         SET_SecondaryColor3ubEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3ubEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ubEXT", symbol_prefix);
+         SET_SecondaryColor3ubEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3ubvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ubv", symbol_prefix);
+         SET_SecondaryColor3ubvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3ubvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ubvEXT", symbol_prefix);
+         SET_SecondaryColor3ubvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ui", symbol_prefix);
+         SET_SecondaryColor3uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3uiEXT", symbol_prefix);
+         SET_SecondaryColor3uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3uiv", symbol_prefix);
+         SET_SecondaryColor3uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3uivEXT", symbol_prefix);
+         SET_SecondaryColor3uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3usEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3us", symbol_prefix);
+         SET_SecondaryColor3usEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3usEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3usEXT", symbol_prefix);
+         SET_SecondaryColor3usEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3usvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3usv", symbol_prefix);
+         SET_SecondaryColor3usvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColor3usvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColor3usvEXT", symbol_prefix);
+         SET_SecondaryColor3usvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColorPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColorPointer", symbol_prefix);
+         SET_SecondaryColorPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SecondaryColorPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sSecondaryColorPointerEXT", symbol_prefix);
+         SET_SecondaryColorPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiDrawArraysEXT) {
+         snprintf(symboln, sizeof(symboln), "%sMultiDrawArrays", symbol_prefix);
+         SET_MultiDrawArraysEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiDrawArraysEXT) {
+         snprintf(symboln, sizeof(symboln), "%sMultiDrawArraysEXT", symbol_prefix);
+         SET_MultiDrawArraysEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiDrawElementsEXT) {
+         snprintf(symboln, sizeof(symboln), "%sMultiDrawElements", symbol_prefix);
+         SET_MultiDrawElementsEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiDrawElementsEXT) {
+         snprintf(symboln, sizeof(symboln), "%sMultiDrawElementsEXT", symbol_prefix);
+         SET_MultiDrawElementsEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoordPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoordPointer", symbol_prefix);
+         SET_FogCoordPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoordPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoordPointerEXT", symbol_prefix);
+         SET_FogCoordPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoorddEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoordd", symbol_prefix);
+         SET_FogCoorddEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoorddEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoorddEXT", symbol_prefix);
+         SET_FogCoorddEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoorddvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoorddv", symbol_prefix);
+         SET_FogCoorddvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoorddvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoorddvEXT", symbol_prefix);
+         SET_FogCoorddvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoordfEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoordf", symbol_prefix);
+         SET_FogCoordfEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoordfEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoordfEXT", symbol_prefix);
+         SET_FogCoordfEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoordfvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoordfv", symbol_prefix);
+         SET_FogCoordfvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FogCoordfvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFogCoordfvEXT", symbol_prefix);
+         SET_FogCoordfvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PixelTexGenSGIX) {
+         snprintf(symboln, sizeof(symboln), "%sPixelTexGenSGIX", symbol_prefix);
+         SET_PixelTexGenSGIX(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendFuncSeparateEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBlendFuncSeparate", symbol_prefix);
+         SET_BlendFuncSeparateEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendFuncSeparateEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBlendFuncSeparateEXT", symbol_prefix);
+         SET_BlendFuncSeparateEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendFuncSeparateEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBlendFuncSeparateINGR", symbol_prefix);
+         SET_BlendFuncSeparateEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FlushVertexArrayRangeNV) {
+         snprintf(symboln, sizeof(symboln), "%sFlushVertexArrayRangeNV", symbol_prefix);
+         SET_FlushVertexArrayRangeNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexArrayRangeNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexArrayRangeNV", symbol_prefix);
+         SET_VertexArrayRangeNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CombinerInputNV) {
+         snprintf(symboln, sizeof(symboln), "%sCombinerInputNV", symbol_prefix);
+         SET_CombinerInputNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CombinerOutputNV) {
+         snprintf(symboln, sizeof(symboln), "%sCombinerOutputNV", symbol_prefix);
+         SET_CombinerOutputNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CombinerParameterfNV) {
+         snprintf(symboln, sizeof(symboln), "%sCombinerParameterfNV", symbol_prefix);
+         SET_CombinerParameterfNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CombinerParameterfvNV) {
+         snprintf(symboln, sizeof(symboln), "%sCombinerParameterfvNV", symbol_prefix);
+         SET_CombinerParameterfvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CombinerParameteriNV) {
+         snprintf(symboln, sizeof(symboln), "%sCombinerParameteriNV", symbol_prefix);
+         SET_CombinerParameteriNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CombinerParameterivNV) {
+         snprintf(symboln, sizeof(symboln), "%sCombinerParameterivNV", symbol_prefix);
+         SET_CombinerParameterivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FinalCombinerInputNV) {
+         snprintf(symboln, sizeof(symboln), "%sFinalCombinerInputNV", symbol_prefix);
+         SET_FinalCombinerInputNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetCombinerInputParameterfvNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetCombinerInputParameterfvNV", symbol_prefix);
+         SET_GetCombinerInputParameterfvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetCombinerInputParameterivNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetCombinerInputParameterivNV", symbol_prefix);
+         SET_GetCombinerInputParameterivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetCombinerOutputParameterfvNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetCombinerOutputParameterfvNV", symbol_prefix);
+         SET_GetCombinerOutputParameterfvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetCombinerOutputParameterivNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetCombinerOutputParameterivNV", symbol_prefix);
+         SET_GetCombinerOutputParameterivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetFinalCombinerInputParameterfvNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetFinalCombinerInputParameterfvNV", symbol_prefix);
+         SET_GetFinalCombinerInputParameterfvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetFinalCombinerInputParameterivNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetFinalCombinerInputParameterivNV", symbol_prefix);
+         SET_GetFinalCombinerInputParameterivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ResizeBuffersMESA) {
+         snprintf(symboln, sizeof(symboln), "%sResizeBuffersMESA", symbol_prefix);
+         SET_ResizeBuffersMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2dMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2d", symbol_prefix);
+         SET_WindowPos2dMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2dMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2dARB", symbol_prefix);
+         SET_WindowPos2dMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2dMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2dMESA", symbol_prefix);
+         SET_WindowPos2dMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2dvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2dv", symbol_prefix);
+         SET_WindowPos2dvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2dvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2dvARB", symbol_prefix);
+         SET_WindowPos2dvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2dvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2dvMESA", symbol_prefix);
+         SET_WindowPos2dvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2fMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2f", symbol_prefix);
+         SET_WindowPos2fMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2fMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2fARB", symbol_prefix);
+         SET_WindowPos2fMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2fMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2fMESA", symbol_prefix);
+         SET_WindowPos2fMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2fvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2fv", symbol_prefix);
+         SET_WindowPos2fvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2fvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2fvARB", symbol_prefix);
+         SET_WindowPos2fvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2fvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2fvMESA", symbol_prefix);
+         SET_WindowPos2fvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2iMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2i", symbol_prefix);
+         SET_WindowPos2iMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2iMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2iARB", symbol_prefix);
+         SET_WindowPos2iMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2iMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2iMESA", symbol_prefix);
+         SET_WindowPos2iMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2ivMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2iv", symbol_prefix);
+         SET_WindowPos2ivMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2ivMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2ivARB", symbol_prefix);
+         SET_WindowPos2ivMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2ivMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2ivMESA", symbol_prefix);
+         SET_WindowPos2ivMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2sMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2s", symbol_prefix);
+         SET_WindowPos2sMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2sMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2sARB", symbol_prefix);
+         SET_WindowPos2sMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2sMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2sMESA", symbol_prefix);
+         SET_WindowPos2sMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2svMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2sv", symbol_prefix);
+         SET_WindowPos2svMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2svMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2svARB", symbol_prefix);
+         SET_WindowPos2svMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos2svMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos2svMESA", symbol_prefix);
+         SET_WindowPos2svMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3dMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3d", symbol_prefix);
+         SET_WindowPos3dMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3dMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3dARB", symbol_prefix);
+         SET_WindowPos3dMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3dMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3dMESA", symbol_prefix);
+         SET_WindowPos3dMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3dvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3dv", symbol_prefix);
+         SET_WindowPos3dvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3dvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3dvARB", symbol_prefix);
+         SET_WindowPos3dvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3dvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3dvMESA", symbol_prefix);
+         SET_WindowPos3dvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3fMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3f", symbol_prefix);
+         SET_WindowPos3fMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3fMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3fARB", symbol_prefix);
+         SET_WindowPos3fMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3fMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3fMESA", symbol_prefix);
+         SET_WindowPos3fMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3fvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3fv", symbol_prefix);
+         SET_WindowPos3fvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3fvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3fvARB", symbol_prefix);
+         SET_WindowPos3fvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3fvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3fvMESA", symbol_prefix);
+         SET_WindowPos3fvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3iMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3i", symbol_prefix);
+         SET_WindowPos3iMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3iMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3iARB", symbol_prefix);
+         SET_WindowPos3iMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3iMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3iMESA", symbol_prefix);
+         SET_WindowPos3iMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3ivMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3iv", symbol_prefix);
+         SET_WindowPos3ivMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3ivMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3ivARB", symbol_prefix);
+         SET_WindowPos3ivMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3ivMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3ivMESA", symbol_prefix);
+         SET_WindowPos3ivMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3sMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3s", symbol_prefix);
+         SET_WindowPos3sMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3sMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3sARB", symbol_prefix);
+         SET_WindowPos3sMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3sMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3sMESA", symbol_prefix);
+         SET_WindowPos3sMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3svMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3sv", symbol_prefix);
+         SET_WindowPos3svMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3svMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3svARB", symbol_prefix);
+         SET_WindowPos3svMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos3svMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos3svMESA", symbol_prefix);
+         SET_WindowPos3svMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos4dMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos4dMESA", symbol_prefix);
+         SET_WindowPos4dMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos4dvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos4dvMESA", symbol_prefix);
+         SET_WindowPos4dvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos4fMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos4fMESA", symbol_prefix);
+         SET_WindowPos4fMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos4fvMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos4fvMESA", symbol_prefix);
+         SET_WindowPos4fvMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos4iMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos4iMESA", symbol_prefix);
+         SET_WindowPos4iMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos4ivMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos4ivMESA", symbol_prefix);
+         SET_WindowPos4ivMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos4sMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos4sMESA", symbol_prefix);
+         SET_WindowPos4sMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->WindowPos4svMESA) {
+         snprintf(symboln, sizeof(symboln), "%sWindowPos4svMESA", symbol_prefix);
+         SET_WindowPos4svMESA(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiModeDrawArraysIBM) {
+         snprintf(symboln, sizeof(symboln), "%sMultiModeDrawArraysIBM", symbol_prefix);
+         SET_MultiModeDrawArraysIBM(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->MultiModeDrawElementsIBM) {
+         snprintf(symboln, sizeof(symboln), "%sMultiModeDrawElementsIBM", symbol_prefix);
+         SET_MultiModeDrawElementsIBM(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteFencesNV) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteFencesNV", symbol_prefix);
+         SET_DeleteFencesNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FinishFenceNV) {
+         snprintf(symboln, sizeof(symboln), "%sFinishFenceNV", symbol_prefix);
+         SET_FinishFenceNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenFencesNV) {
+         snprintf(symboln, sizeof(symboln), "%sGenFencesNV", symbol_prefix);
+         SET_GenFencesNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetFenceivNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetFenceivNV", symbol_prefix);
+         SET_GetFenceivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsFenceNV) {
+         snprintf(symboln, sizeof(symboln), "%sIsFenceNV", symbol_prefix);
+         SET_IsFenceNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SetFenceNV) {
+         snprintf(symboln, sizeof(symboln), "%sSetFenceNV", symbol_prefix);
+         SET_SetFenceNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TestFenceNV) {
+         snprintf(symboln, sizeof(symboln), "%sTestFenceNV", symbol_prefix);
+         SET_TestFenceNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->AreProgramsResidentNV) {
+         snprintf(symboln, sizeof(symboln), "%sAreProgramsResidentNV", symbol_prefix);
+         SET_AreProgramsResidentNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindProgramNV) {
+         snprintf(symboln, sizeof(symboln), "%sBindProgramARB", symbol_prefix);
+         SET_BindProgramNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindProgramNV) {
+         snprintf(symboln, sizeof(symboln), "%sBindProgramNV", symbol_prefix);
+         SET_BindProgramNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteProgramsNV) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteProgramsARB", symbol_prefix);
+         SET_DeleteProgramsNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteProgramsNV) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteProgramsNV", symbol_prefix);
+         SET_DeleteProgramsNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ExecuteProgramNV) {
+         snprintf(symboln, sizeof(symboln), "%sExecuteProgramNV", symbol_prefix);
+         SET_ExecuteProgramNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenProgramsNV) {
+         snprintf(symboln, sizeof(symboln), "%sGenProgramsARB", symbol_prefix);
+         SET_GenProgramsNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenProgramsNV) {
+         snprintf(symboln, sizeof(symboln), "%sGenProgramsNV", symbol_prefix);
+         SET_GenProgramsNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramParameterdvNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramParameterdvNV", symbol_prefix);
+         SET_GetProgramParameterdvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramParameterfvNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramParameterfvNV", symbol_prefix);
+         SET_GetProgramParameterfvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramStringNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramStringNV", symbol_prefix);
+         SET_GetProgramStringNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramivNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramivNV", symbol_prefix);
+         SET_GetProgramivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTrackMatrixivNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetTrackMatrixivNV", symbol_prefix);
+         SET_GetTrackMatrixivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribPointervNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribPointerv", symbol_prefix);
+         SET_GetVertexAttribPointervNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribPointervNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribPointervARB", symbol_prefix);
+         SET_GetVertexAttribPointervNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribPointervNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribPointervNV", symbol_prefix);
+         SET_GetVertexAttribPointervNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribdvNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribdvNV", symbol_prefix);
+         SET_GetVertexAttribdvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribfvNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribfvNV", symbol_prefix);
+         SET_GetVertexAttribfvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribivNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribivNV", symbol_prefix);
+         SET_GetVertexAttribivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsProgramNV) {
+         snprintf(symboln, sizeof(symboln), "%sIsProgramARB", symbol_prefix);
+         SET_IsProgramNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsProgramNV) {
+         snprintf(symboln, sizeof(symboln), "%sIsProgramNV", symbol_prefix);
+         SET_IsProgramNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->LoadProgramNV) {
+         snprintf(symboln, sizeof(symboln), "%sLoadProgramNV", symbol_prefix);
+         SET_LoadProgramNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramParameters4dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sProgramParameters4dvNV", symbol_prefix);
+         SET_ProgramParameters4dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramParameters4fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sProgramParameters4fvNV", symbol_prefix);
+         SET_ProgramParameters4fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RequestResidentProgramsNV) {
+         snprintf(symboln, sizeof(symboln), "%sRequestResidentProgramsNV", symbol_prefix);
+         SET_RequestResidentProgramsNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TrackMatrixNV) {
+         snprintf(symboln, sizeof(symboln), "%sTrackMatrixNV", symbol_prefix);
+         SET_TrackMatrixNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1dNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dNV", symbol_prefix);
+         SET_VertexAttrib1dNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dvNV", symbol_prefix);
+         SET_VertexAttrib1dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1fNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fNV", symbol_prefix);
+         SET_VertexAttrib1fNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fvNV", symbol_prefix);
+         SET_VertexAttrib1fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1sNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1sNV", symbol_prefix);
+         SET_VertexAttrib1sNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib1svNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib1svNV", symbol_prefix);
+         SET_VertexAttrib1svNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2dNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dNV", symbol_prefix);
+         SET_VertexAttrib2dNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dvNV", symbol_prefix);
+         SET_VertexAttrib2dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2fNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fNV", symbol_prefix);
+         SET_VertexAttrib2fNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fvNV", symbol_prefix);
+         SET_VertexAttrib2fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2sNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2sNV", symbol_prefix);
+         SET_VertexAttrib2sNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib2svNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib2svNV", symbol_prefix);
+         SET_VertexAttrib2svNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3dNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dNV", symbol_prefix);
+         SET_VertexAttrib3dNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dvNV", symbol_prefix);
+         SET_VertexAttrib3dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3fNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fNV", symbol_prefix);
+         SET_VertexAttrib3fNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fvNV", symbol_prefix);
+         SET_VertexAttrib3fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3sNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3sNV", symbol_prefix);
+         SET_VertexAttrib3sNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib3svNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib3svNV", symbol_prefix);
+         SET_VertexAttrib3svNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4dNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dNV", symbol_prefix);
+         SET_VertexAttrib4dNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dvNV", symbol_prefix);
+         SET_VertexAttrib4dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4fNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fNV", symbol_prefix);
+         SET_VertexAttrib4fNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fvNV", symbol_prefix);
+         SET_VertexAttrib4fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4sNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4sNV", symbol_prefix);
+         SET_VertexAttrib4sNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4svNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4svNV", symbol_prefix);
+         SET_VertexAttrib4svNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4ubNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ubNV", symbol_prefix);
+         SET_VertexAttrib4ubNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttrib4ubvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ubvNV", symbol_prefix);
+         SET_VertexAttrib4ubvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribPointerNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribPointerNV", symbol_prefix);
+         SET_VertexAttribPointerNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs1dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs1dvNV", symbol_prefix);
+         SET_VertexAttribs1dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs1fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs1fvNV", symbol_prefix);
+         SET_VertexAttribs1fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs1svNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs1svNV", symbol_prefix);
+         SET_VertexAttribs1svNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs2dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs2dvNV", symbol_prefix);
+         SET_VertexAttribs2dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs2fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs2fvNV", symbol_prefix);
+         SET_VertexAttribs2fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs2svNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs2svNV", symbol_prefix);
+         SET_VertexAttribs2svNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs3dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs3dvNV", symbol_prefix);
+         SET_VertexAttribs3dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs3fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs3fvNV", symbol_prefix);
+         SET_VertexAttribs3fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs3svNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs3svNV", symbol_prefix);
+         SET_VertexAttribs3svNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs4dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs4dvNV", symbol_prefix);
+         SET_VertexAttribs4dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs4fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs4fvNV", symbol_prefix);
+         SET_VertexAttribs4fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs4svNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs4svNV", symbol_prefix);
+         SET_VertexAttribs4svNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribs4ubvNV) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribs4ubvNV", symbol_prefix);
+         SET_VertexAttribs4ubvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexBumpParameterfvATI) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexBumpParameterfvATI", symbol_prefix);
+         SET_GetTexBumpParameterfvATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexBumpParameterivATI) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexBumpParameterivATI", symbol_prefix);
+         SET_GetTexBumpParameterivATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexBumpParameterfvATI) {
+         snprintf(symboln, sizeof(symboln), "%sTexBumpParameterfvATI", symbol_prefix);
+         SET_TexBumpParameterfvATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexBumpParameterivATI) {
+         snprintf(symboln, sizeof(symboln), "%sTexBumpParameterivATI", symbol_prefix);
+         SET_TexBumpParameterivATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->AlphaFragmentOp1ATI) {
+         snprintf(symboln, sizeof(symboln), "%sAlphaFragmentOp1ATI", symbol_prefix);
+         SET_AlphaFragmentOp1ATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->AlphaFragmentOp2ATI) {
+         snprintf(symboln, sizeof(symboln), "%sAlphaFragmentOp2ATI", symbol_prefix);
+         SET_AlphaFragmentOp2ATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->AlphaFragmentOp3ATI) {
+         snprintf(symboln, sizeof(symboln), "%sAlphaFragmentOp3ATI", symbol_prefix);
+         SET_AlphaFragmentOp3ATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BeginFragmentShaderATI) {
+         snprintf(symboln, sizeof(symboln), "%sBeginFragmentShaderATI", symbol_prefix);
+         SET_BeginFragmentShaderATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindFragmentShaderATI) {
+         snprintf(symboln, sizeof(symboln), "%sBindFragmentShaderATI", symbol_prefix);
+         SET_BindFragmentShaderATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorFragmentOp1ATI) {
+         snprintf(symboln, sizeof(symboln), "%sColorFragmentOp1ATI", symbol_prefix);
+         SET_ColorFragmentOp1ATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorFragmentOp2ATI) {
+         snprintf(symboln, sizeof(symboln), "%sColorFragmentOp2ATI", symbol_prefix);
+         SET_ColorFragmentOp2ATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorFragmentOp3ATI) {
+         snprintf(symboln, sizeof(symboln), "%sColorFragmentOp3ATI", symbol_prefix);
+         SET_ColorFragmentOp3ATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteFragmentShaderATI) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteFragmentShaderATI", symbol_prefix);
+         SET_DeleteFragmentShaderATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EndFragmentShaderATI) {
+         snprintf(symboln, sizeof(symboln), "%sEndFragmentShaderATI", symbol_prefix);
+         SET_EndFragmentShaderATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenFragmentShadersATI) {
+         snprintf(symboln, sizeof(symboln), "%sGenFragmentShadersATI", symbol_prefix);
+         SET_GenFragmentShadersATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PassTexCoordATI) {
+         snprintf(symboln, sizeof(symboln), "%sPassTexCoordATI", symbol_prefix);
+         SET_PassTexCoordATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SampleMapATI) {
+         snprintf(symboln, sizeof(symboln), "%sSampleMapATI", symbol_prefix);
+         SET_SampleMapATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->SetFragmentShaderConstantATI) {
+         snprintf(symboln, sizeof(symboln), "%sSetFragmentShaderConstantATI", symbol_prefix);
+         SET_SetFragmentShaderConstantATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameteriNV) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameteri", symbol_prefix);
+         SET_PointParameteriNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameteriNV) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameteriNV", symbol_prefix);
+         SET_PointParameteriNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterivNV) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameteriv", symbol_prefix);
+         SET_PointParameterivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PointParameterivNV) {
+         snprintf(symboln, sizeof(symboln), "%sPointParameterivNV", symbol_prefix);
+         SET_PointParameterivNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ActiveStencilFaceEXT) {
+         snprintf(symboln, sizeof(symboln), "%sActiveStencilFaceEXT", symbol_prefix);
+         SET_ActiveStencilFaceEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindVertexArrayAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sBindVertexArrayAPPLE", symbol_prefix);
+         SET_BindVertexArrayAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteVertexArraysAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteVertexArrays", symbol_prefix);
+         SET_DeleteVertexArraysAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteVertexArraysAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteVertexArraysAPPLE", symbol_prefix);
+         SET_DeleteVertexArraysAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenVertexArraysAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sGenVertexArraysAPPLE", symbol_prefix);
+         SET_GenVertexArraysAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsVertexArrayAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sIsVertexArray", symbol_prefix);
+         SET_IsVertexArrayAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsVertexArrayAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sIsVertexArrayAPPLE", symbol_prefix);
+         SET_IsVertexArrayAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramNamedParameterdvNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramNamedParameterdvNV", symbol_prefix);
+         SET_GetProgramNamedParameterdvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetProgramNamedParameterfvNV) {
+         snprintf(symboln, sizeof(symboln), "%sGetProgramNamedParameterfvNV", symbol_prefix);
+         SET_GetProgramNamedParameterfvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramNamedParameter4dNV) {
+         snprintf(symboln, sizeof(symboln), "%sProgramNamedParameter4dNV", symbol_prefix);
+         SET_ProgramNamedParameter4dNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramNamedParameter4dvNV) {
+         snprintf(symboln, sizeof(symboln), "%sProgramNamedParameter4dvNV", symbol_prefix);
+         SET_ProgramNamedParameter4dvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramNamedParameter4fNV) {
+         snprintf(symboln, sizeof(symboln), "%sProgramNamedParameter4fNV", symbol_prefix);
+         SET_ProgramNamedParameter4fNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramNamedParameter4fvNV) {
+         snprintf(symboln, sizeof(symboln), "%sProgramNamedParameter4fvNV", symbol_prefix);
+         SET_ProgramNamedParameter4fvNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PrimitiveRestartIndexNV) {
+         snprintf(symboln, sizeof(symboln), "%sPrimitiveRestartIndexNV", symbol_prefix);
+         SET_PrimitiveRestartIndexNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PrimitiveRestartIndexNV) {
+         snprintf(symboln, sizeof(symboln), "%sPrimitiveRestartIndex", symbol_prefix);
+         SET_PrimitiveRestartIndexNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->PrimitiveRestartNV) {
+         snprintf(symboln, sizeof(symboln), "%sPrimitiveRestartNV", symbol_prefix);
+         SET_PrimitiveRestartNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DepthBoundsEXT) {
+         snprintf(symboln, sizeof(symboln), "%sDepthBoundsEXT", symbol_prefix);
+         SET_DepthBoundsEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendEquationSeparateEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBlendEquationSeparate", symbol_prefix);
+         SET_BlendEquationSeparateEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendEquationSeparateEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBlendEquationSeparateEXT", symbol_prefix);
+         SET_BlendEquationSeparateEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlendEquationSeparateEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBlendEquationSeparateATI", symbol_prefix);
+         SET_BlendEquationSeparateEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindFramebufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindFramebuffer", symbol_prefix);
+         SET_BindFramebufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindFramebufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindFramebufferEXT", symbol_prefix);
+         SET_BindFramebufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindRenderbufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindRenderbuffer", symbol_prefix);
+         SET_BindRenderbufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindRenderbufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindRenderbufferEXT", symbol_prefix);
+         SET_BindRenderbufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CheckFramebufferStatusEXT) {
+         snprintf(symboln, sizeof(symboln), "%sCheckFramebufferStatus", symbol_prefix);
+         SET_CheckFramebufferStatusEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CheckFramebufferStatusEXT) {
+         snprintf(symboln, sizeof(symboln), "%sCheckFramebufferStatusEXT", symbol_prefix);
+         SET_CheckFramebufferStatusEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteFramebuffersEXT) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteFramebuffers", symbol_prefix);
+         SET_DeleteFramebuffersEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteFramebuffersEXT) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteFramebuffersEXT", symbol_prefix);
+         SET_DeleteFramebuffersEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteRenderbuffersEXT) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteRenderbuffers", symbol_prefix);
+         SET_DeleteRenderbuffersEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DeleteRenderbuffersEXT) {
+         snprintf(symboln, sizeof(symboln), "%sDeleteRenderbuffersEXT", symbol_prefix);
+         SET_DeleteRenderbuffersEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferRenderbufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferRenderbuffer", symbol_prefix);
+         SET_FramebufferRenderbufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferRenderbufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferRenderbufferEXT", symbol_prefix);
+         SET_FramebufferRenderbufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTexture1DEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTexture1D", symbol_prefix);
+         SET_FramebufferTexture1DEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTexture1DEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTexture1DEXT", symbol_prefix);
+         SET_FramebufferTexture1DEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTexture2DEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTexture2D", symbol_prefix);
+         SET_FramebufferTexture2DEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTexture2DEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTexture2DEXT", symbol_prefix);
+         SET_FramebufferTexture2DEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTexture3DEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTexture3D", symbol_prefix);
+         SET_FramebufferTexture3DEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTexture3DEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTexture3DEXT", symbol_prefix);
+         SET_FramebufferTexture3DEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenFramebuffersEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGenFramebuffers", symbol_prefix);
+         SET_GenFramebuffersEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenFramebuffersEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGenFramebuffersEXT", symbol_prefix);
+         SET_GenFramebuffersEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenRenderbuffersEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGenRenderbuffers", symbol_prefix);
+         SET_GenRenderbuffersEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenRenderbuffersEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGenRenderbuffersEXT", symbol_prefix);
+         SET_GenRenderbuffersEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenerateMipmapEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGenerateMipmap", symbol_prefix);
+         SET_GenerateMipmapEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GenerateMipmapEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGenerateMipmapEXT", symbol_prefix);
+         SET_GenerateMipmapEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetFramebufferAttachmentParameterivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetFramebufferAttachmentParameteriv", symbol_prefix);
+         SET_GetFramebufferAttachmentParameterivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetFramebufferAttachmentParameterivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetFramebufferAttachmentParameterivEXT", symbol_prefix);
+         SET_GetFramebufferAttachmentParameterivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetRenderbufferParameterivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetRenderbufferParameteriv", symbol_prefix);
+         SET_GetRenderbufferParameterivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetRenderbufferParameterivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetRenderbufferParameterivEXT", symbol_prefix);
+         SET_GetRenderbufferParameterivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsFramebufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sIsFramebuffer", symbol_prefix);
+         SET_IsFramebufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsFramebufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sIsFramebufferEXT", symbol_prefix);
+         SET_IsFramebufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsRenderbufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sIsRenderbuffer", symbol_prefix);
+         SET_IsRenderbufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsRenderbufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sIsRenderbufferEXT", symbol_prefix);
+         SET_IsRenderbufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RenderbufferStorageEXT) {
+         snprintf(symboln, sizeof(symboln), "%sRenderbufferStorage", symbol_prefix);
+         SET_RenderbufferStorageEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->RenderbufferStorageEXT) {
+         snprintf(symboln, sizeof(symboln), "%sRenderbufferStorageEXT", symbol_prefix);
+         SET_RenderbufferStorageEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlitFramebufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBlitFramebuffer", symbol_prefix);
+         SET_BlitFramebufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BlitFramebufferEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBlitFramebufferEXT", symbol_prefix);
+         SET_BlitFramebufferEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BufferParameteriAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sBufferParameteriAPPLE", symbol_prefix);
+         SET_BufferParameteriAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FlushMappedBufferRangeAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sFlushMappedBufferRangeAPPLE", symbol_prefix);
+         SET_FlushMappedBufferRangeAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindFragDataLocationEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindFragDataLocationEXT", symbol_prefix);
+         SET_BindFragDataLocationEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindFragDataLocationEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindFragDataLocation", symbol_prefix);
+         SET_BindFragDataLocationEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetFragDataLocationEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetFragDataLocationEXT", symbol_prefix);
+         SET_GetFragDataLocationEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetFragDataLocationEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetFragDataLocation", symbol_prefix);
+         SET_GetFragDataLocationEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetUniformuivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetUniformuivEXT", symbol_prefix);
+         SET_GetUniformuivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetUniformuivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetUniformuiv", symbol_prefix);
+         SET_GetUniformuivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribIivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribIivEXT", symbol_prefix);
+         SET_GetVertexAttribIivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribIivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribIiv", symbol_prefix);
+         SET_GetVertexAttribIivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribIuivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribIuivEXT", symbol_prefix);
+         SET_GetVertexAttribIuivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetVertexAttribIuivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetVertexAttribIuiv", symbol_prefix);
+         SET_GetVertexAttribIuivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1uiEXT", symbol_prefix);
+         SET_Uniform1uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1ui", symbol_prefix);
+         SET_Uniform1uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1uivEXT", symbol_prefix);
+         SET_Uniform1uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform1uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform1uiv", symbol_prefix);
+         SET_Uniform1uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2uiEXT", symbol_prefix);
+         SET_Uniform2uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2ui", symbol_prefix);
+         SET_Uniform2uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2uivEXT", symbol_prefix);
+         SET_Uniform2uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform2uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform2uiv", symbol_prefix);
+         SET_Uniform2uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3uiEXT", symbol_prefix);
+         SET_Uniform3uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3ui", symbol_prefix);
+         SET_Uniform3uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3uivEXT", symbol_prefix);
+         SET_Uniform3uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform3uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform3uiv", symbol_prefix);
+         SET_Uniform3uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4uiEXT", symbol_prefix);
+         SET_Uniform4uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4ui", symbol_prefix);
+         SET_Uniform4uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4uivEXT", symbol_prefix);
+         SET_Uniform4uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->Uniform4uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUniform4uiv", symbol_prefix);
+         SET_Uniform4uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI1iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI1iEXT", symbol_prefix);
+         SET_VertexAttribI1iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI1iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI1i", symbol_prefix);
+         SET_VertexAttribI1iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI1ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI1ivEXT", symbol_prefix);
+         SET_VertexAttribI1ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI1ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI1iv", symbol_prefix);
+         SET_VertexAttribI1ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI1uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI1uiEXT", symbol_prefix);
+         SET_VertexAttribI1uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI1uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI1ui", symbol_prefix);
+         SET_VertexAttribI1uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI1uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI1uivEXT", symbol_prefix);
+         SET_VertexAttribI1uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI1uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI1uiv", symbol_prefix);
+         SET_VertexAttribI1uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI2iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI2iEXT", symbol_prefix);
+         SET_VertexAttribI2iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI2iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI2i", symbol_prefix);
+         SET_VertexAttribI2iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI2ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI2ivEXT", symbol_prefix);
+         SET_VertexAttribI2ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI2ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI2iv", symbol_prefix);
+         SET_VertexAttribI2ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI2uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI2uiEXT", symbol_prefix);
+         SET_VertexAttribI2uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI2uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI2ui", symbol_prefix);
+         SET_VertexAttribI2uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI2uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI2uivEXT", symbol_prefix);
+         SET_VertexAttribI2uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI2uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI2uiv", symbol_prefix);
+         SET_VertexAttribI2uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI3iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI3iEXT", symbol_prefix);
+         SET_VertexAttribI3iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI3iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI3i", symbol_prefix);
+         SET_VertexAttribI3iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI3ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI3ivEXT", symbol_prefix);
+         SET_VertexAttribI3ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI3ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI3iv", symbol_prefix);
+         SET_VertexAttribI3ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI3uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI3uiEXT", symbol_prefix);
+         SET_VertexAttribI3uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI3uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI3ui", symbol_prefix);
+         SET_VertexAttribI3uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI3uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI3uivEXT", symbol_prefix);
+         SET_VertexAttribI3uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI3uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI3uiv", symbol_prefix);
+         SET_VertexAttribI3uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4bvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4bvEXT", symbol_prefix);
+         SET_VertexAttribI4bvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4bvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4bv", symbol_prefix);
+         SET_VertexAttribI4bvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4iEXT", symbol_prefix);
+         SET_VertexAttribI4iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4iEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4i", symbol_prefix);
+         SET_VertexAttribI4iEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4ivEXT", symbol_prefix);
+         SET_VertexAttribI4ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4ivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4iv", symbol_prefix);
+         SET_VertexAttribI4ivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4svEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4svEXT", symbol_prefix);
+         SET_VertexAttribI4svEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4svEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4sv", symbol_prefix);
+         SET_VertexAttribI4svEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4ubvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4ubvEXT", symbol_prefix);
+         SET_VertexAttribI4ubvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4ubvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4ubv", symbol_prefix);
+         SET_VertexAttribI4ubvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4uiEXT", symbol_prefix);
+         SET_VertexAttribI4uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4uiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4ui", symbol_prefix);
+         SET_VertexAttribI4uiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4uivEXT", symbol_prefix);
+         SET_VertexAttribI4uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4uivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4uiv", symbol_prefix);
+         SET_VertexAttribI4uivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4usvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4usvEXT", symbol_prefix);
+         SET_VertexAttribI4usvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribI4usvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribI4usv", symbol_prefix);
+         SET_VertexAttribI4usvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribIPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribIPointerEXT", symbol_prefix);
+         SET_VertexAttribIPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->VertexAttribIPointerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sVertexAttribIPointer", symbol_prefix);
+         SET_VertexAttribIPointerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTextureLayerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTextureLayer", symbol_prefix);
+         SET_FramebufferTextureLayerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->FramebufferTextureLayerEXT) {
+         snprintf(symboln, sizeof(symboln), "%sFramebufferTextureLayerEXT", symbol_prefix);
+         SET_FramebufferTextureLayerEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorMaskIndexedEXT) {
+         snprintf(symboln, sizeof(symboln), "%sColorMaskIndexedEXT", symbol_prefix);
+         SET_ColorMaskIndexedEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ColorMaskIndexedEXT) {
+         snprintf(symboln, sizeof(symboln), "%sColorMaski", symbol_prefix);
+         SET_ColorMaskIndexedEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DisableIndexedEXT) {
+         snprintf(symboln, sizeof(symboln), "%sDisableIndexedEXT", symbol_prefix);
+         SET_DisableIndexedEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->DisableIndexedEXT) {
+         snprintf(symboln, sizeof(symboln), "%sDisablei", symbol_prefix);
+         SET_DisableIndexedEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EnableIndexedEXT) {
+         snprintf(symboln, sizeof(symboln), "%sEnableIndexedEXT", symbol_prefix);
+         SET_EnableIndexedEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EnableIndexedEXT) {
+         snprintf(symboln, sizeof(symboln), "%sEnablei", symbol_prefix);
+         SET_EnableIndexedEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBooleanIndexedvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetBooleanIndexedvEXT", symbol_prefix);
+         SET_GetBooleanIndexedvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetBooleanIndexedvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetBooleani_v", symbol_prefix);
+         SET_GetBooleanIndexedvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetIntegerIndexedvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetIntegerIndexedvEXT", symbol_prefix);
+         SET_GetIntegerIndexedvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetIntegerIndexedvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetIntegeri_v", symbol_prefix);
+         SET_GetIntegerIndexedvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsEnabledIndexedEXT) {
+         snprintf(symboln, sizeof(symboln), "%sIsEnabledIndexedEXT", symbol_prefix);
+         SET_IsEnabledIndexedEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->IsEnabledIndexedEXT) {
+         snprintf(symboln, sizeof(symboln), "%sIsEnabledi", symbol_prefix);
+         SET_IsEnabledIndexedEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearColorIiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sClearColorIiEXT", symbol_prefix);
+         SET_ClearColorIiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ClearColorIuiEXT) {
+         snprintf(symboln, sizeof(symboln), "%sClearColorIuiEXT", symbol_prefix);
+         SET_ClearColorIuiEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexParameterIivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexParameterIivEXT", symbol_prefix);
+         SET_GetTexParameterIivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexParameterIivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexParameterIiv", symbol_prefix);
+         SET_GetTexParameterIivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexParameterIuivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexParameterIuivEXT", symbol_prefix);
+         SET_GetTexParameterIuivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexParameterIuivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexParameterIuiv", symbol_prefix);
+         SET_GetTexParameterIuivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexParameterIivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sTexParameterIivEXT", symbol_prefix);
+         SET_TexParameterIivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexParameterIivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sTexParameterIiv", symbol_prefix);
+         SET_TexParameterIivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexParameterIuivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sTexParameterIuivEXT", symbol_prefix);
+         SET_TexParameterIuivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TexParameterIuivEXT) {
+         snprintf(symboln, sizeof(symboln), "%sTexParameterIuiv", symbol_prefix);
+         SET_TexParameterIuivEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BeginConditionalRenderNV) {
+         snprintf(symboln, sizeof(symboln), "%sBeginConditionalRenderNV", symbol_prefix);
+         SET_BeginConditionalRenderNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BeginConditionalRenderNV) {
+         snprintf(symboln, sizeof(symboln), "%sBeginConditionalRender", symbol_prefix);
+         SET_BeginConditionalRenderNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EndConditionalRenderNV) {
+         snprintf(symboln, sizeof(symboln), "%sEndConditionalRenderNV", symbol_prefix);
+         SET_EndConditionalRenderNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EndConditionalRenderNV) {
+         snprintf(symboln, sizeof(symboln), "%sEndConditionalRender", symbol_prefix);
+         SET_EndConditionalRenderNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BeginTransformFeedbackEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBeginTransformFeedbackEXT", symbol_prefix);
+         SET_BeginTransformFeedbackEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BeginTransformFeedbackEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBeginTransformFeedback", symbol_prefix);
+         SET_BeginTransformFeedbackEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindBufferBaseEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindBufferBaseEXT", symbol_prefix);
+         SET_BindBufferBaseEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindBufferBaseEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindBufferBase", symbol_prefix);
+         SET_BindBufferBaseEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindBufferOffsetEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindBufferOffsetEXT", symbol_prefix);
+         SET_BindBufferOffsetEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindBufferRangeEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindBufferRangeEXT", symbol_prefix);
+         SET_BindBufferRangeEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->BindBufferRangeEXT) {
+         snprintf(symboln, sizeof(symboln), "%sBindBufferRange", symbol_prefix);
+         SET_BindBufferRangeEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EndTransformFeedbackEXT) {
+         snprintf(symboln, sizeof(symboln), "%sEndTransformFeedbackEXT", symbol_prefix);
+         SET_EndTransformFeedbackEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EndTransformFeedbackEXT) {
+         snprintf(symboln, sizeof(symboln), "%sEndTransformFeedback", symbol_prefix);
+         SET_EndTransformFeedbackEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTransformFeedbackVaryingEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetTransformFeedbackVaryingEXT", symbol_prefix);
+         SET_GetTransformFeedbackVaryingEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTransformFeedbackVaryingEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetTransformFeedbackVarying", symbol_prefix);
+         SET_GetTransformFeedbackVaryingEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TransformFeedbackVaryingsEXT) {
+         snprintf(symboln, sizeof(symboln), "%sTransformFeedbackVaryingsEXT", symbol_prefix);
+         SET_TransformFeedbackVaryingsEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TransformFeedbackVaryingsEXT) {
+         snprintf(symboln, sizeof(symboln), "%sTransformFeedbackVaryings", symbol_prefix);
+         SET_TransformFeedbackVaryingsEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProvokingVertexEXT) {
+         snprintf(symboln, sizeof(symboln), "%sProvokingVertexEXT", symbol_prefix);
+         SET_ProvokingVertexEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProvokingVertexEXT) {
+         snprintf(symboln, sizeof(symboln), "%sProvokingVertex", symbol_prefix);
+         SET_ProvokingVertexEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetTexParameterPointervAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sGetTexParameterPointervAPPLE", symbol_prefix);
+         SET_GetTexParameterPointervAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TextureRangeAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sTextureRangeAPPLE", symbol_prefix);
+         SET_TextureRangeAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetObjectParameterivAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sGetObjectParameterivAPPLE", symbol_prefix);
+         SET_GetObjectParameterivAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ObjectPurgeableAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sObjectPurgeableAPPLE", symbol_prefix);
+         SET_ObjectPurgeableAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ObjectUnpurgeableAPPLE) {
+         snprintf(symboln, sizeof(symboln), "%sObjectUnpurgeableAPPLE", symbol_prefix);
+         SET_ObjectUnpurgeableAPPLE(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ActiveProgramEXT) {
+         snprintf(symboln, sizeof(symboln), "%sActiveProgramEXT", symbol_prefix);
+         SET_ActiveProgramEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->CreateShaderProgramEXT) {
+         snprintf(symboln, sizeof(symboln), "%sCreateShaderProgramEXT", symbol_prefix);
+         SET_CreateShaderProgramEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->UseShaderProgramEXT) {
+         snprintf(symboln, sizeof(symboln), "%sUseShaderProgramEXT", symbol_prefix);
+         SET_UseShaderProgramEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->TextureBarrierNV) {
+         snprintf(symboln, sizeof(symboln), "%sTextureBarrierNV", symbol_prefix);
+         SET_TextureBarrierNV(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->StencilFuncSeparateATI) {
+         snprintf(symboln, sizeof(symboln), "%sStencilFuncSeparateATI", symbol_prefix);
+         SET_StencilFuncSeparateATI(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramEnvParameters4fvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sProgramEnvParameters4fvEXT", symbol_prefix);
+         SET_ProgramEnvParameters4fvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->ProgramLocalParameters4fvEXT) {
+         snprintf(symboln, sizeof(symboln), "%sProgramLocalParameters4fvEXT", symbol_prefix);
+         SET_ProgramLocalParameters4fvEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetQueryObjecti64vEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetQueryObjecti64vEXT", symbol_prefix);
+         SET_GetQueryObjecti64vEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->GetQueryObjectui64vEXT) {
+         snprintf(symboln, sizeof(symboln), "%sGetQueryObjectui64vEXT", symbol_prefix);
+         SET_GetQueryObjectui64vEXT(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EGLImageTargetRenderbufferStorageOES) {
+         snprintf(symboln, sizeof(symboln), "%sEGLImageTargetRenderbufferStorageOES", symbol_prefix);
+         SET_EGLImageTargetRenderbufferStorageOES(disp, dlsym(handle, symboln));
+    }
+
+
+    if(!disp->EGLImageTargetTexture2DOES) {
+         snprintf(symboln, sizeof(symboln), "%sEGLImageTargetTexture2DOES", symbol_prefix);
+         SET_EGLImageTargetTexture2DOES(disp, dlsym(handle, symboln));
+    }
+
+
+   return disp;
+}
+
diff --git a/src/mapi/glapi/sources.mak b/src/mapi/glapi/sources.mak
index 0b4d8cf..dfc6cc6 100644
--- a/src/mapi/glapi/sources.mak
+++ b/src/mapi/glapi/sources.mak
@@ -3,6 +3,7 @@
 GLAPI_SOURCES = \
 	glapi_dispatch.c \
 	glapi_entrypoint.c \
+	glapi_gentable.c \
 	glapi_getproc.c \
 	glapi_nop.c \
 	glthread.c \
commit 837dc6101120a90f7a8d29ea45cf8e849a3542c2
Author: Marek Olšák <maraeo at gmail.com>
Date:   Sat Jun 11 23:01:36 2011 +0200

    r300g: max_anisotropy of 1 is not anisotropic filtering

diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index 7127ea1..057cd9f 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -1307,7 +1307,7 @@ static void*
     sampler->filter0 |= r300_translate_tex_filters(state->min_img_filter,
                                                    state->mag_img_filter,
                                                    state->min_mip_filter,
-                                                   state->max_anisotropy > 0);
+                                                   state->max_anisotropy > 1);
 
     sampler->filter0 |= r300_anisotropy(state->max_anisotropy);
 
commit 219150433a305b0e0b6093647758eed3a7650bc4
Author: Daniel Vetter <daniel.vetter at ffwll.ch>
Date:   Tue Jun 7 22:22:16 2011 +0200

    i915g: implement fence signalling
    
    v2: Incorporated feedback from Jakob Bornecrantz.
    
    Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>

diff --git a/src/gallium/winsys/i915/drm/i915_drm_fence.c b/src/gallium/winsys/i915/drm/i915_drm_fence.c
index 30ebf48..650ccfc 100644
--- a/src/gallium/winsys/i915/drm/i915_drm_fence.c
+++ b/src/gallium/winsys/i915/drm/i915_drm_fence.c
@@ -52,9 +52,13 @@ static int
 i915_drm_fence_signalled(struct i915_winsys *iws,
                           struct pipe_fence_handle *fence)
 {
-   assert(0);
+   struct i915_drm_fence *f = (struct i915_drm_fence *)fence;
 
-   return 0;
+   /* fence already expired */
+   if (!f->bo)
+	   return 1;
+
+   return !drm_intel_bo_busy(f->bo);
 }
 
 static int
commit 4176025d463e7733dac19788b45b6472b65d62d4
Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jun 8 13:44:00 2011 -0700

    i965: Add support for GL_FIXED vertex attributes.
    
    This sadly requires work in the VS to rescale them, because the
    hardware doesn't support this format natively.
    
    Fixes arb_es2_compatibility-fixed-type and gtf/fixed_data_type.
    
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 3cc3372..c6e5395 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -207,6 +207,10 @@ static GLuint get_surface_type( GLenum type, GLuint size,
       case GL_UNSIGNED_INT: return uint_types_scale[size];
       case GL_UNSIGNED_SHORT: return ushort_types_scale[size];
       case GL_UNSIGNED_BYTE: return ubyte_types_scale[size];
+      /* This produces GL_FIXED inputs as values between INT32_MIN and
+       * INT32_MAX, which will be scaled down by 1/65536 by the VS.
+       */
+      case GL_FIXED: return int_types_scale[size];
       default: assert(0); return 0;
       }
    }
@@ -225,6 +229,7 @@ static GLuint get_size( GLenum type )
    case GL_UNSIGNED_INT: return sizeof(GLuint);
    case GL_UNSIGNED_SHORT: return sizeof(GLushort);
    case GL_UNSIGNED_BYTE: return sizeof(GLubyte);
+   case GL_FIXED: return sizeof(GLuint);
    default: assert(0); return 0;
    }
 }
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
index d6a5399..80d5e78 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.c
+++ b/src/mesa/drivers/dri/i965/brw_vs.c
@@ -145,6 +145,14 @@ static void brw_upload_vs_prog(struct brw_context *brw)
       }
    }
 
+   /* BRW_NEW_VERTICES */
+   for (i = 0; i < VERT_ATTRIB_MAX; i++) {
+      if (vp->program.Base.InputsRead & (1 << i) &&
+	  brw->vb.inputs[i].glarray->Type == GL_FIXED) {
+	 key.gl_fixed_input_size[i] = brw->vb.inputs[i].glarray->Size;
+      }
+   }
+
    /* Make an early check for the key.
     */
    drm_intel_bo_unreference(brw->vs.prog_bo);
@@ -164,7 +172,8 @@ const struct brw_tracked_state brw_vs_prog = {
    .dirty = {
       .mesa  = (_NEW_TRANSFORM | _NEW_POLYGON | _NEW_POINT | _NEW_LIGHT |
 		_NEW_BUFFERS),
-      .brw   = BRW_NEW_VERTEX_PROGRAM,
+      .brw   = (BRW_NEW_VERTEX_PROGRAM |
+		BRW_NEW_VERTICES),
       .cache = 0
    },
    .prepare = brw_upload_vs_prog
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h
index 7ca84a5..432994a 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.h
+++ b/src/mesa/drivers/dri/i965/brw_vs.h
@@ -41,6 +41,10 @@
 
 struct brw_vs_prog_key {
    GLuint program_string_id;
+   /**
+    * Number of channels of the vertex attribute that need GL_FIXED rescaling
+    */
+   uint8_t gl_fixed_input_size[VERT_ATTRIB_MAX];
    GLuint nr_userclip:4;
    GLuint copy_edgeflag:1;
    GLuint point_coord_replace:8;
diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c
index 7d5eb35..b6c9e5a 100644
--- a/src/mesa/drivers/dri/i965/brw_vs_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c
@@ -1878,6 +1878,26 @@ get_predicate(const struct prog_instruction *inst)
    }
 }
 
+static void
+brw_vs_rescale_gl_fixed(struct brw_vs_compile *c)
+{
+   struct brw_compile *p = &c->func;
+   int i;
+
+   for (i = 0; i < VERT_ATTRIB_MAX; i++) {
+      if (!(c->prog_data.inputs_read & (1 << i)))
+	 continue;
+
+      if (c->key.gl_fixed_input_size[i] != 0) {
+	 struct brw_reg reg = c->regs[PROGRAM_INPUT][i];
+
+	 brw_MUL(p,
+		 brw_writemask(reg, (1 << c->key.gl_fixed_input_size[i]) - 1),
+		 reg, brw_imm_f(1.0 / 65536.0));
+      }
+   }
+}
+
 /* Emit the vertex program instructions here.
  */
 void brw_vs_emit(struct brw_vs_compile *c )
@@ -1937,6 +1957,8 @@ void brw_vs_emit(struct brw_vs_compile *c )
     */
    brw_vs_alloc_regs(c);
 
+   brw_vs_rescale_gl_fixed(c);
+
    if (c->needs_stack)
       brw_MOV(p, get_addr_reg(stack_index), brw_address(c->stack));
 
commit 20f087863d00fed9823791a447932e74d77cc546
Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jun 8 11:25:04 2011 -0700

    glsl: Fix incorrect optimization of instructions before discard statements.
    
    The function was named "find_unconditional_discard", but didn't
    actually check that the discard statement found was unconditional.
    Fixes piglit glsl-fs-discard-04.
    
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

diff --git a/src/glsl/opt_discard_simplification.cpp b/src/glsl/opt_discard_simplification.cpp
index 7c2928d..a19947d 100644
--- a/src/glsl/opt_discard_simplification.cpp
+++ b/src/glsl/opt_discard_simplification.cpp
@@ -104,9 +104,23 @@ static ir_discard *
 find_unconditional_discard(exec_list &instructions)
 {
    foreach_list(n, &instructions) {
-      ir_discard *ir = ((ir_instruction *) n)->as_discard();
-      if (ir != NULL && ir->condition == NULL)
-	 return ir;
+      ir_instruction *ir = (ir_instruction *)n;
+
+      if (ir->ir_type == ir_type_return ||
+	  ir->ir_type == ir_type_loop_jump)
+	 return NULL;
+
+      /* So far, this code doesn't know how to look inside of flow
+       * control to see if a discard later on at this level is
+       * unconditional.
+       */
+      if (ir->ir_type == ir_type_if ||
+	  ir->ir_type == ir_type_loop)
+	 return NULL;
+
+      ir_discard *discard = ir->as_discard();
+      if (discard != NULL && discard->condition == NULL)
+	 return discard;
    }
    return NULL;
 }
commit 23ef4a6063668c187d00a0502207f0c03be5f994
Author: Eugeni Dodonov <eugeni at mandriva.com>
Date:   Fri Jun 10 15:26:02 2011 -0300

    Fix format not a string literal error with -Werror=format-security
    
    A trivial fix for error: format not a string literal and no format
    arguments with compiling with -Werror=format-security flags.
    
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 09033ae..7c73a8f 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -100,7 +100,7 @@ fs_visitor::fail(const char *format, ...)
    this->fail_msg = msg;
 
    if (INTEL_DEBUG & DEBUG_WM) {
-      fprintf(stderr, msg);
+      fprintf(stderr, "%s",  msg);
    }
 }
 
commit 97d230b0bcf8ed001f685ebac314fbd8e1955718
Author: Chad Versace <chad at chad-versace.us>
Date:   Fri Jun 10 10:27:54 2011 -0700

    i965/brw: Fix emit_depthbuffer() when packed depth/stencil texture is attached
    
    If either depth or stencil buffer has packed depth/stencil format, then do
    not use separate stencil.
    
    Before this commit, emit_depthbuffer() incorrectly assumed that the
    texture's stencil renderbuffer wrapper was a *separate* stencil buffer,
    because the depth and stencil renderbuffer wrappers are distinct for
    depth/stencil textures (that is, depth_irb != stencil_irb).
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38134
    Signed-off-by: Chad Versace <chad at chad-versace.us>

diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c
index a6de28b..3d0983e 100644
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
@@ -220,19 +220,13 @@ static void emit_depthbuffer(struct brw_context *brw)
    unsigned int len;
 
    /*
-    * If depth and stencil buffers are identical, then don't use separate
-    * stencil.
+    * If either depth or stencil buffer has packed depth/stencil format,
+    * then don't use separate stencil. Emit only a depth buffer.
     */
-   if (depth_irb && depth_irb == stencil_irb) {
+   if (depth_irb && depth_irb->Base.Format == MESA_FORMAT_S8_Z24) {
       stencil_irb = NULL;
-   }
-
-   /*
-    * If stencil buffer uses combined depth/stencil format, but no depth buffer
-    * is attached, then use stencil buffer as depth buffer.
-    */
-   if (!depth_irb && stencil_irb
-       && stencil_irb->Base.Format == MESA_FORMAT_S8_Z24) {
+   } else if (!depth_irb && stencil_irb
+	      && stencil_irb->Base.Format == MESA_FORMAT_S8_Z24) {
       depth_irb = stencil_irb;
       stencil_irb = NULL;
    }


More information about the Xquartz-changes mailing list