[Xquartz-changes] xserver: Branch 'server-1.10-apple' - 14 commits

Jeremy Huddleston jeremyhu at freedesktop.org
Fri Jun 17 12:16:43 PDT 2011


Rebased ref, commits from common ancestor:
commit c8ed1bd1d22a02878f8e0f12be61184060bf5db4
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Fri Feb 12 19:48:52 2010 -0800

    fb: Revert fb changes that broke XQuartz
    
    http://bugs.freedesktop.org/show_bug.cgi?id=26124
    
    Revert "Fix source pictures getting random transforms after 2d6a8f668342a5190cdf43b5."
    Revert "fb: Adjust transform or composite coordinates for pixman operations"
    
    http://bugs.freedesktop.org/26124
    
    This reverts commit a72c65e9176c51de95db2fdbf4c5d946a4911695.
    This reverts commit a6bd5d2e482a5aa84acb3d4932e2a166d8670ef1.
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/fb/fb.h b/fb/fb.h
index 021a940..0b248e1 100644
--- a/fb/fb.h
+++ b/fb/fb.h
@@ -2079,11 +2079,8 @@ fbFillRegionSolid (DrawablePtr	pDrawable,
 		   FbBits	xor);
 
 extern _X_EXPORT pixman_image_t *
-image_from_pict (PicturePtr	pict,
-		 Bool		has_clip,
-		 int		*xoff,
-		 int		*yoff);
-
+image_from_pict (PicturePtr pict,
+		 Bool       has_clip);
 extern _X_EXPORT void free_pixman_pict (PicturePtr, pixman_image_t *);
 
 #endif /* _FB_H_ */
diff --git a/fb/fbpict.c b/fb/fbpict.c
index 7636040..af1920b 100644
--- a/fb/fbpict.c
+++ b/fb/fbpict.c
@@ -50,24 +50,19 @@ fbComposite (CARD8      op,
 	     CARD16     height)
 {
     pixman_image_t *src, *mask, *dest;
-    int src_xoff, src_yoff;
-    int msk_xoff, msk_yoff;
-    int dst_xoff, dst_yoff;
     
     miCompositeSourceValidate (pSrc, xSrc - xDst, ySrc - yDst, width, height);
     if (pMask)
 	miCompositeSourceValidate (pMask, xMask - xDst, yMask - yDst, width, height);
     
-    src = image_from_pict (pSrc, FALSE, &src_xoff, &src_yoff);
-    mask = image_from_pict (pMask, FALSE, &msk_xoff, &msk_yoff);
-    dest = image_from_pict (pDst, TRUE, &dst_xoff, &dst_yoff);
+    src = image_from_pict (pSrc, TRUE);
+    mask = image_from_pict (pMask, TRUE);
+    dest = image_from_pict (pDst, TRUE);
 
     if (src && dest && !(pMask && !mask))
     {
 	pixman_image_composite (op, src, mask, dest,
-				xSrc + src_xoff, ySrc + src_yoff,
-				xMask + msk_xoff, yMask + msk_yoff,
-				xDst + dst_xoff, yDst + dst_yoff,
+				xSrc, ySrc, xMask, yMask, xDst, yDst,
 				width, height);
     }
 
@@ -146,22 +141,22 @@ create_conical_gradient_image (PictGradient *gradient)
 
 static pixman_image_t *
 create_bits_picture (PicturePtr pict,
-		     Bool       has_clip,
-		     int	*xoff,
-		     int	*yoff)
+		     Bool       has_clip)
 {
-    PixmapPtr pixmap;
     FbBits *bits;
     FbStride stride;
-    int bpp;
+    int bpp, xoff, yoff;
     pixman_image_t *image;
     
-    fbGetDrawablePixmap (pict->pDrawable, pixmap, *xoff, *yoff);
-    fbGetPixmapBitsData(pixmap, bits, stride, bpp);
+    fbGetDrawable (pict->pDrawable, bits, stride, bpp, xoff, yoff);
+
+    bits = (FbBits*)((CARD8*)bits +
+		     (pict->pDrawable->y + yoff) * stride * sizeof(FbBits) +
+		     (pict->pDrawable->x + xoff) * (bpp / 8));
 
     image = pixman_image_create_bits (
 	pict->format,
-	pixmap->drawable.width, pixmap->drawable.height,
+	pict->pDrawable->width, pict->pDrawable->height,
 	(uint32_t *)bits, stride * sizeof (FbStride));
     
     
@@ -187,55 +182,33 @@ create_bits_picture (PicturePtr pict,
 	if (pict->clientClipType != CT_NONE)
 	    pixman_image_set_has_client_clip (image, TRUE);
 
-	if (*xoff || *yoff)
-	    pixman_region_translate (pict->pCompositeClip, *xoff, *yoff);
+	pixman_region_translate (pict->pCompositeClip, - pict->pDrawable->x, - pict->pDrawable->y);
 
 	pixman_image_set_clip_region (image, pict->pCompositeClip);
 
-	if (*xoff || *yoff)
-	    pixman_region_translate (pict->pCompositeClip, -*xoff, -*yoff);
+	pixman_region_translate (pict->pCompositeClip, pict->pDrawable->x, pict->pDrawable->y);
     }
     
     /* Indexed table */
     if (pict->pFormat->index.devPrivate)
 	pixman_image_set_indexed (image, pict->pFormat->index.devPrivate);
 
-    /* Add in drawable origin to position within the image */
-    *xoff += pict->pDrawable->x;
-    *yoff += pict->pDrawable->y;
-
     return image;
 }
 
 static pixman_image_t *
-image_from_pict_internal (PicturePtr pict, Bool has_clip, int *xoff, int *yoff, Bool is_alpha_map);
+image_from_pict_internal (PicturePtr pict, Bool has_clip, Bool is_alpha_map);
 
 static void
-set_image_properties (pixman_image_t *image, PicturePtr pict, Bool has_clip, int *xoff, int *yoff, Bool is_alpha_map)
+set_image_properties (pixman_image_t *image, PicturePtr pict, Bool is_alpha_map)
 {
     pixman_repeat_t repeat;
     pixman_filter_t filter;
     
     if (pict->transform)
     {
-	/* For source images, adjust the transform to account
-	 * for the drawable offset within the pixman image,
-	 * then set the offset to 0 as it will be used
-	 * to compute positions within the transformed image.
-	 */
-	if (!has_clip) {
-	    struct pixman_transform	adjusted;
-
-	    adjusted = *pict->transform;
-	    pixman_transform_translate(&adjusted,
-				       NULL,
-				       pixman_int_to_fixed(*xoff),
-				       pixman_int_to_fixed(*yoff));
-	    pixman_image_set_transform (image, &adjusted);
-	    *xoff = 0;
-	    *yoff = 0;
-	} else
-	    pixman_image_set_transform (image, pict->transform);
+	pixman_image_set_transform (
+	    image, (pixman_transform_t *)pict->transform);
     }
     
     switch (pict->repeatType)
@@ -265,8 +238,7 @@ set_image_properties (pixman_image_t *image, PicturePtr pict, Bool has_clip, int
      */
     if (pict->alphaMap && !is_alpha_map)
     {
-	int alpha_xoff, alpha_yoff;
-	pixman_image_t *alpha_map = image_from_pict_internal (pict->alphaMap, FALSE, &alpha_xoff, &alpha_yoff, TRUE);
+	pixman_image_t *alpha_map = image_from_pict_internal (pict->alphaMap, TRUE, TRUE);
 	
 	pixman_image_set_alpha_map (
 	    image, alpha_map, pict->alphaOrigin.x, pict->alphaOrigin.y);
@@ -299,7 +271,8 @@ set_image_properties (pixman_image_t *image, PicturePtr pict, Bool has_clip, int
 }
 
 static pixman_image_t *
-image_from_pict_internal (PicturePtr pict, Bool has_clip, int *xoff, int *yoff, Bool is_alpha_map)
+image_from_pict_internal (PicturePtr pict,
+		 Bool has_clip, Bool is_alpha_map)
 {
     pixman_image_t *image = NULL;
 
@@ -308,7 +281,7 @@ image_from_pict_internal (PicturePtr pict, Bool has_clip, int *xoff, int *yoff,
 
     if (pict->pDrawable)
     {
-	image = create_bits_picture (pict, has_clip, xoff, yoff);
+	image = create_bits_picture (pict, has_clip);
     }
     else if (pict->pSourcePict)
     {
@@ -329,19 +302,18 @@ image_from_pict_internal (PicturePtr pict, Bool has_clip, int *xoff, int *yoff,
 	    else if (sp->type == SourcePictTypeConical)
 		image = create_conical_gradient_image (gradient);
 	}
-	*xoff = *yoff = 0;
     }
     
     if (image)
-	set_image_properties (image, pict, has_clip, xoff, yoff, is_alpha_map);
+	set_image_properties (image, pict, is_alpha_map);
     
     return image;
 }
 
 pixman_image_t *
-image_from_pict (PicturePtr pict, Bool has_clip, int *xoff, int *yoff)
+image_from_pict (PicturePtr pict, Bool has_clip)
 {
-    return image_from_pict_internal (pict, has_clip, xoff, yoff, FALSE);
+    return image_from_pict_internal (pict, has_clip, FALSE);
 }
 
 void
diff --git a/fb/fbtrap.c b/fb/fbtrap.c
index c309ceb..40cffd9 100644
--- a/fb/fbtrap.c
+++ b/fb/fbtrap.c
@@ -37,8 +37,7 @@ fbAddTraps (PicturePtr	pPicture,
 	    int		ntrap,
 	    xTrap	*traps)
 {
-    int image_xoff, image_yoff;
-    pixman_image_t *image = image_from_pict (pPicture, FALSE, &image_xoff, &image_yoff);
+    pixman_image_t *image = image_from_pict (pPicture, FALSE);
 
     if (!image)
 	return;
@@ -54,8 +53,7 @@ fbRasterizeTrapezoid (PicturePtr    pPicture,
 		      int	    x_off,
 		      int	    y_off)
 {
-    int	mask_xoff, mask_yoff;
-    pixman_image_t *image = image_from_pict (pPicture, FALSE, &mask_xoff, &mask_yoff);
+    pixman_image_t *image = image_from_pict (pPicture, FALSE);
 
     if (!image)
 	return;
commit 04f321a1fd2f50944d2368a69184a1eb9c132313
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Fri Apr 30 13:08:25 2010 -0700

    Workaround the GC clipping problem in miPaintWindow and add some debugging output.
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/mi/miexpose.c b/mi/miexpose.c
index 94258b8..4f25c23 100644
--- a/mi/miexpose.c
+++ b/mi/miexpose.c
@@ -521,6 +521,7 @@ void RootlessSetPixmapOfAncestors(WindowPtr pWin);
 void RootlessStartDrawing(WindowPtr pWin);
 void RootlessDamageRegion(WindowPtr pWin, RegionPtr prgn);
 Bool IsFramedWindow(WindowPtr pWin);
+#include "../fb/fb.h"
 #endif 
 
 void
@@ -548,24 +549,37 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
     Bool	solid = TRUE;
     DrawablePtr	drawable = &pWin->drawable;
 
+#ifdef XQUARTZ_CLIP_DEBUG
+    ErrorF("START %d BS %d (pR = %ld)\n", what, pWin->backgroundState, ParentRelative);
+    ErrorF("      Rgn: %d %d %d %d\n", prgn->extents.x1, prgn->extents.y1,
+	                               prgn->extents.x2 - prgn->extents.x1,
+	                               prgn->extents.y2 - prgn->extents.y1);
+    ErrorF("      Win: %d %d (%d %d) %d %d\n", pWin->origin.x, pWin->origin.y,
+	                                       pWin->winSize.extents.x1, pWin->winSize.extents.y1,
+	                                       pWin->winSize.extents.x2 - pWin->winSize.extents.x1,
+					       pWin->winSize.extents.y2 - pWin->winSize.extents.y1);
+    ErrorF("     Draw: %d %d %d %d\n", pWin->drawable.x, pWin->drawable.y,
+				       pWin->drawable.width, pWin->drawable.height);
+#endif
+
 #ifdef ROOTLESS
     if(!drawable || drawable->type == UNDRAWABLE_WINDOW)
 	return;
-
-    if(IsFramedWindow(pWin)) {
-        RootlessStartDrawing(pWin);
-        RootlessDamageRegion(pWin, prgn);
-    
-        if(pWin->backgroundState == ParentRelative) {
-            if((what == PW_BACKGROUND) || 
-               (what == PW_BORDER && !pWin->borderIsPixel))
-                RootlessSetPixmapOfAncestors(pWin);
-        }
-    }
 #endif
     
     if (what == PW_BACKGROUND)
     {
+#ifdef ROOTLESS
+	if(IsFramedWindow(pWin)) {
+	    RootlessStartDrawing(pWin);
+	    RootlessDamageRegion(pWin, prgn);
+
+	    if(pWin->backgroundState == ParentRelative) {
+		RootlessSetPixmapOfAncestors(pWin);
+	    }
+	}
+#endif
+
 	while (pWin->backgroundState == ParentRelative)
 	    pWin = pWin->parent;
 
@@ -587,6 +601,18 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
     {
 	PixmapPtr   pixmap;
 
+#ifdef ROOTLESS
+	if(IsFramedWindow(pWin)) {
+	    RootlessStartDrawing(pWin);
+	    RootlessDamageRegion(pWin, prgn);
+	    
+	    if(!pWin->borderIsPixel &&
+		pWin->backgroundState == ParentRelative) {
+		RootlessSetPixmapOfAncestors(pWin);
+	    }
+	}
+#endif
+
 	tile_x_off = drawable->x;
 	tile_y_off = drawable->y;
 	
@@ -595,6 +621,12 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
 	    return;
 	pixmap = (*pScreen->GetWindowPixmap) ((WindowPtr) drawable);
 	drawable = &pixmap->drawable;
+
+#ifdef XQUARTZ_CLIP_DEBUG
+	ErrorF("     Draw: %d %d %d %d\n",
+	       drawable->x, drawable->y, drawable->width, drawable->height);    
+#endif
+	
 #ifdef COMPOSITE
 	draw_x_off = pixmap->screen_x;
 	draw_y_off = pixmap->screen_y;
@@ -657,6 +689,57 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
     ChangeGC (NullClient, pGC, gcmask, gcval);
     ValidateGC (drawable, pGC);
 
+#ifdef XQUARTZ_CLIP_DEBUG
+    ErrorF("       GC: %d %d %d %d\n",
+	   pGC->pCompositeClip->extents.x1, pGC->pCompositeClip->extents.y1,
+	   pGC->pCompositeClip->extents.x2 - pGC->pCompositeClip->extents.x1,
+	   pGC->pCompositeClip->extents.y2 - pGC->pCompositeClip->extents.y1);
+#endif
+    
+#ifdef XQUARTZ
+    /* Looks like our clipping isn't set right for some reason:
+     * http://xquartz.macosforge.org/trac/ticket/290
+     */
+    if(what == PW_BORDER) {
+
+#if 0
+	if(solid) {
+#if 1
+	    fbFillRegionSolid(&pWin->drawable,
+			      prgn,
+			      0,
+			      fbReplicatePixel(fill.pixel,
+					       pWin->drawable.bitsPerPixel));
+#else
+	    fbFillRegionSolid(drawable,
+			      prgn,
+			      0,
+			      fbReplicatePixel(fill.pixel,
+					       drawable->bitsPerPixel));
+#endif
+	    return;
+	}
+#endif
+    
+	pGC->pCompositeClip->extents.x1 += prgn->extents.x1;
+	pGC->pCompositeClip->extents.y1 += prgn->extents.y1;
+	pGC->pCompositeClip->extents.x2 += prgn->extents.x1;
+	pGC->pCompositeClip->extents.y2 += prgn->extents.y1;
+	
+	if(pGC->pCompositeClip->extents.x2 > drawable->pScreen->width)
+	    pGC->pCompositeClip->extents.x2 = drawable->pScreen->width;
+	if(pGC->pCompositeClip->extents.y2 > drawable->pScreen->height)
+	    pGC->pCompositeClip->extents.y2 = drawable->pScreen->height;
+    }
+#endif
+
+#ifdef XQUARTZ_CLIP_DEBUG
+    ErrorF("       GC: %d %d %d %d\n",
+	   pGC->pCompositeClip->extents.x1, pGC->pCompositeClip->extents.y1,
+	   pGC->pCompositeClip->extents.x2 - pGC->pCompositeClip->extents.x1,
+	   pGC->pCompositeClip->extents.y2 - pGC->pCompositeClip->extents.y1);    
+#endif
+
     numRects = RegionNumRects(prgn);
     pbox = RegionRects(prgn);
     for (i= numRects; --i >= 0; pbox++, prect++)
commit 813fa4fa77e1375fbf7477d7379c95c11a582ea9
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Sat Oct 30 14:55:06 2010 -0700

    configure.ac: Add -fno-strict-aliasing to CFLAGS
    
    This should address https://bugs.freedesktop.org/show_bug.cgi?id=31238
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/configure.ac b/configure.ac
index 9aa8211..4b572b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,6 +80,12 @@ XORG_PROG_RAWCPP
 # easier overrides at build time.
 XSERVER_CFLAGS='$(CWARNFLAGS)'
 
+dnl Explicitly add -fno-strict-aliasing since this option should disappear
+dnl from util-macros CWARNFLAGS
+if  test "x$GCC" = xyes ; then
+    XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing"
+fi
+
 dnl Check for dtrace program (needed to build Xserver dtrace probes)
 dnl Also checks for <sys/sdt.h>, since some Linux distros have an 
 dnl ISDN trace program named dtrace
commit c9336d13a6b231edf16412706c52318947fcd000
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Fri Jun 17 10:11:15 2011 -0700

    configure.ac: Bump version to 1.10.2.901 (1.10.3 RC1)
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/configure.ac b/configure.ac
index 398d16f..9aa8211 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,8 +26,8 @@ dnl
 dnl Process this file with autoconf to create configure.
 
 AC_PREREQ(2.57)
-AC_INIT([xorg-server], 1.10.2, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xorg-server)
-RELEASE_DATE="2011-05-28"
+AC_INIT([xorg-server], 1.10.2.901, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xorg-server)
+RELEASE_DATE="2011-06-17"
 AC_CONFIG_SRCDIR([Makefile.am])
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
 AM_MAINTAINER_MODE
commit 0abfba08a080747b1a6310c19f3bea74a6460363
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Thu Jun 2 20:04:04 2011 -0700

    XQuartz: GLX: Use _glapi_create_table_from_handle to create out dispatch table
    
    This will allow XQuartz built on older systems to pickup capabilities on
    newer systems and prevent runtime failures when building on newer systems and
    running on older ones.
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
    
    This commit squashes three cherry-picks:
    (cherry picked from commit 3fa5d27e46ea8af55dcaaad7a99973c38bd11967)
    (cherry picked from commit feab04397de2684568dedaaaa8f299cac9f44f8b)
    (cherry picked from commit 34e2598f0ad247071bd6a4312d9014d6e3b2305a)

diff --git a/hw/xquartz/GL/indirect.c b/hw/xquartz/GL/indirect.c
index db4fe83..c46ba9d 100644
--- a/hw/xquartz/GL/indirect.c
+++ b/hw/xquartz/GL/indirect.c
@@ -2,7 +2,7 @@
  * GLX implementation that uses Apple's OpenGL.framework
  * (Indirect rendering path -- it's also used for some direct mode code too)
  *
- * Copyright (c) 2007, 2008, 2009 Apple Inc.
+ * Copyright (c) 2007-2011 Apple Inc.
  * Copyright (c) 2004 Torrey T. Lyons. All Rights Reserved.
  * Copyright (c) 2002 Greg Parker. All Rights Reserved.
  *
@@ -35,126 +35,28 @@
 #include <dix-config.h>
 #endif
 
-#include "dri.h"
-
 #include <AvailabilityMacros.h>
 
-#define GL_GLEXT_WUNDEF_SUPPORT
+#include <dlfcn.h>
 
 #include <OpenGL/OpenGL.h>
-#include <OpenGL/gl.h>
-#include <OpenGL/glext.h>
-#include <OpenGL/CGLContext.h>
-
-/* These next few GL_EXT pre-processing blocks are to explicitly define 
- * these symbols to 0 if they are not set by OpenGL.framework.  This
- * prevents the X11 glext.h from setting them to 1.
- */
-
-#ifndef GL_EXT_fragment_shader
-#define GL_EXT_fragment_shader 0
-#endif
-
-#ifndef GL_EXT_blend_equation_separate
-#define GL_EXT_blend_equation_separate 0
-#endif
-
-#ifndef GL_EXT_blend_func_separate
-#define GL_EXT_blend_func_separate 0
-#endif
-
-#ifndef GL_EXT_depth_bounds_test
-#define GL_EXT_depth_bounds_test 0
-#endif
-
-#ifndef GL_EXT_compiled_vertex_array
-#define GL_EXT_compiled_vertex_array 0
-#endif
-
-#ifndef GL_EXT_cull_vertex
-#define GL_EXT_cull_vertex 0
-#endif
-
-#ifndef GL_EXT_fog_coord
-#define GL_EXT_fog_coord 0
-#endif
-
-#ifndef GL_EXT_framebuffer_blit
-#define GL_EXT_framebuffer_blit 0
-#endif
-
-#ifndef GL_EXT_framebuffer_object
-#define GL_EXT_framebuffer_object 0
-#endif
-
-#ifndef GL_EXT_gpu_program_parameters
-#define GL_EXT_gpu_program_parameters 0
-#endif
-
-#ifndef GL_EXT_multi_draw_arrays
-#define GL_EXT_multi_draw_arrays 0
-#endif
-
-#ifndef GL_EXT_point_parameters
-#define GL_EXT_point_parameters 0
-#endif
-
-#ifndef GL_EXT_polygon_offset
-#define GL_EXT_polygon_offset 0
-#endif
-
-#ifndef GL_EXT_secondary_color
-#define GL_EXT_secondary_color 0
-#endif
-
-#ifndef GL_EXT_stencil_two_side
-#define GL_EXT_stencil_two_side 0
-#endif
-
-#ifndef GL_EXT_timer_query
-#define GL_EXT_timer_query 0
-#endif
-
-#ifndef GL_EXT_vertex_array
-#define GL_EXT_vertex_array 0
-#endif
-
-/* Tiger PPC doesn't have the associated symbols, but glext.h says it does.  Liars!
- * http://trac.macports.org/ticket/20638
- */
-#if defined(__ppc__) && MAC_OS_X_VERSION_MIN_REQUIRED < 1050
-#undef GL_EXT_gpu_program_parameters
-#define GL_EXT_gpu_program_parameters 0
-#endif
+#include <OpenGL/gl.h>     /* Just to prevent glxserver.h from loading mesa's and colliding with OpenGL.h */
 
+#include <X11/Xproto.h>
 #include <GL/glxproto.h>
-#include <windowstr.h>
-#include <resource.h>
-#include <GL/glxint.h>
-#include <GL/glxtokens.h>
-#include <scrnintstr.h>
+
 #include <glxserver.h>
-#include <glxscreens.h>
-#include <glxdrawable.h>
-#include <glxcontext.h>
-#include <glxext.h>
 #include <glxutil.h>
-#include <glxscreens.h>
-#include <GL/internal/glcore.h>
-#include "x-hash.h"
-#include "x-list.h"
-
-//#include "capabilities.h"
-#include "visualConfigs.h"
 
 typedef unsigned long long GLuint64EXT;
 typedef long long GLint64EXT;
 #include <dispatch.h>
-#include <Xplugin.h>
 #include <glapi.h>
-#include <glapitable.h>
 
-__GLXprovider * GlxGetDRISWrastProvider (void);
+#include "x-hash.h"
+
+#include "visualConfigs.h"
+#include "dri.h"
 
 // Write debugging output, or not
 #ifdef GLAQUA_DEBUG
@@ -163,6 +65,8 @@ __GLXprovider * GlxGetDRISWrastProvider (void);
 #define GLAQUA_DEBUG_MSG(a, ...)
 #endif
 
+__GLXprovider * GlxGetDRISWrastProvider (void);
+
 static void setup_dispatch_table(void);
 GLuint __glFloorLog2(GLuint val);
 void warn_func(void * p1, char *format, ...);
@@ -681,959 +585,36 @@ GLuint __glFloorLog2(GLuint val)
     return c;
 }
 
+#ifndef OPENGL_FRAMEWORK_PATH
+#define OPENGL_FRAMEWORK_PATH "/System/Library/Frameworks/OpenGL.framework/OpenGL"
+#endif
+
 static void setup_dispatch_table(void) {
     static struct _glapi_table *disp = NULL;
+    static void *handle;
+    const char *opengl_framework_path;
 
     if(disp)  {
         _glapi_set_dispatch(disp);
         return;
     }
 
-    disp=calloc(1,sizeof(struct _glapi_table));
-    assert(disp);
-
-    /* to update:
-     * for f in $(grep 'define SET_' ../../../glx/dispatch.h  | cut -f2 -d' ' | cut -f1 -d\( | sort -u); do grep -q $f indirect.c || echo $f ; done | grep -v by_offset | sed 's:SET_\(.*\)$:SET_\1(disp, gl\1)\;:' | pbcopy
-     */
-
-    SET_Accum(disp, glAccum);
-    SET_AlphaFunc(disp, glAlphaFunc);
-    SET_AreTexturesResident(disp, glAreTexturesResident);
-    SET_ArrayElement(disp, glArrayElement);
-    SET_Begin(disp, glBegin);
-    SET_BindTexture(disp, glBindTexture);
-    SET_Bitmap(disp, glBitmap);
-    SET_BlendColor(disp, glBlendColor);
-    SET_BlendEquation(disp, glBlendEquation);
-    SET_BlendFunc(disp, glBlendFunc);
-    SET_CallList(disp, glCallList);
-    SET_CallLists(disp, glCallLists);
-    SET_Clear(disp, glClear);
-    SET_ClearAccum(disp, glClearAccum);
-    SET_ClearColor(disp, glClearColor);
-    SET_ClearDepth(disp, glClearDepth);
-    SET_ClearIndex(disp, glClearIndex);
-    SET_ClearStencil(disp, glClearStencil);
-    SET_ClipPlane(disp, glClipPlane);
-    SET_Color3b(disp, glColor3b);
-    SET_Color3bv(disp, glColor3bv);
-    SET_Color3d(disp, glColor3d);
-    SET_Color3dv(disp, glColor3dv);
-    SET_Color3f(disp, glColor3f);
-    SET_Color3fv(disp, glColor3fv);
-    SET_Color3i(disp, glColor3i);
-    SET_Color3iv(disp, glColor3iv);
-    SET_Color3s(disp, glColor3s);
-    SET_Color3sv(disp, glColor3sv);
-    SET_Color3ub(disp, glColor3ub);
-    SET_Color3ubv(disp, glColor3ubv);
-    SET_Color3ui(disp, glColor3ui);
-    SET_Color3uiv(disp, glColor3uiv);
-    SET_Color3us(disp, glColor3us);
-    SET_Color3usv(disp, glColor3usv);
-    SET_Color4b(disp, glColor4b);
-    SET_Color4bv(disp, glColor4bv);
-    SET_Color4d(disp, glColor4d);
-    SET_Color4dv(disp, glColor4dv);
-    SET_Color4f(disp, glColor4f);
-    SET_Color4fv(disp, glColor4fv);
-    SET_Color4i(disp, glColor4i);
-    SET_Color4iv(disp, glColor4iv);
-    SET_Color4s(disp, glColor4s);
-    SET_Color4sv(disp, glColor4sv);
-    SET_Color4ub(disp, glColor4ub);
-    SET_Color4ubv(disp, glColor4ubv);
-    SET_Color4ui(disp, glColor4ui);
-    SET_Color4uiv(disp, glColor4uiv);
-    SET_Color4us(disp, glColor4us);
-    SET_Color4usv(disp, glColor4usv);
-    SET_ColorMask(disp, glColorMask);
-    SET_ColorMaterial(disp, glColorMaterial);
-    SET_ColorPointer(disp, glColorPointer);
-    SET_ColorSubTable(disp, glColorSubTable);
-    SET_ColorTable(disp, glColorTable);
-    SET_ColorTableParameterfv(disp, glColorTableParameterfv);
-    SET_ColorTableParameteriv(disp, glColorTableParameteriv);
-    SET_ConvolutionFilter1D(disp, glConvolutionFilter1D);
-    SET_ConvolutionFilter2D(disp, glConvolutionFilter2D);
-    SET_ConvolutionParameterf(disp, glConvolutionParameterf);
-    SET_ConvolutionParameterfv(disp, glConvolutionParameterfv);
-    SET_ConvolutionParameteri(disp, glConvolutionParameteri);
-    SET_ConvolutionParameteriv(disp, glConvolutionParameteriv);
-    SET_CopyColorSubTable(disp, glCopyColorSubTable);
-    SET_CopyColorTable(disp, glCopyColorTable);
-    SET_CopyConvolutionFilter1D(disp, glCopyConvolutionFilter1D);
-    SET_CopyConvolutionFilter2D(disp, glCopyConvolutionFilter2D);
-    SET_CopyPixels(disp, glCopyPixels);
-    SET_CopyTexImage1D(disp, glCopyTexImage1D);
-    SET_CopyTexImage2D(disp, glCopyTexImage2D);
-    SET_CopyTexSubImage1D(disp, glCopyTexSubImage1D);
-    SET_CopyTexSubImage2D(disp, glCopyTexSubImage2D);
-    SET_CopyTexSubImage3D(disp, glCopyTexSubImage3D);
-    SET_CullFace(disp, glCullFace);
-    SET_DeleteLists(disp, glDeleteLists);
-    SET_DeleteTextures(disp, glDeleteTextures);
-    SET_DepthFunc(disp, glDepthFunc);
-    SET_DepthMask(disp, glDepthMask);
-    SET_DepthRange(disp, glDepthRange);
-    SET_Disable(disp, glDisable);
-    SET_DisableClientState(disp, glDisableClientState);
-    SET_DrawArrays(disp, glDrawArrays);
-    SET_DrawBuffer(disp, glDrawBuffer);
-    SET_DrawElements(disp, glDrawElements);
-    SET_DrawPixels(disp, glDrawPixels);
-    SET_DrawRangeElements(disp, glDrawRangeElements);
-    SET_EdgeFlag(disp, glEdgeFlag);
-    SET_EdgeFlagPointer(disp, glEdgeFlagPointer);
-    SET_EdgeFlagv(disp, glEdgeFlagv);
-    SET_Enable(disp, glEnable);
-    SET_EnableClientState(disp, glEnableClientState);
-    SET_End(disp, glEnd);
-    SET_EndList(disp, glEndList);
-    SET_EvalCoord1d(disp, glEvalCoord1d);
-    SET_EvalCoord1dv(disp, glEvalCoord1dv);
-    SET_EvalCoord1f(disp, glEvalCoord1f);
-    SET_EvalCoord1fv(disp, glEvalCoord1fv);
-    SET_EvalCoord2d(disp, glEvalCoord2d);
-    SET_EvalCoord2dv(disp, glEvalCoord2dv);
-    SET_EvalCoord2f(disp, glEvalCoord2f);
-    SET_EvalCoord2fv(disp, glEvalCoord2fv);
-    SET_EvalMesh1(disp, glEvalMesh1);
-    SET_EvalMesh2(disp, glEvalMesh2);
-    SET_EvalPoint1(disp, glEvalPoint1);
-    SET_EvalPoint2(disp, glEvalPoint2);
-    SET_FeedbackBuffer(disp, glFeedbackBuffer);
-    SET_Finish(disp, glFinish);
-    SET_Flush(disp, glFlush);
-    SET_Fogf(disp, glFogf);
-    SET_Fogfv(disp, glFogfv);
-    SET_Fogi(disp, glFogi);
-    SET_Fogiv(disp, glFogiv);
-    SET_FrontFace(disp, glFrontFace);
-    SET_Frustum(disp, glFrustum);
-    SET_GenLists(disp, glGenLists);
-    SET_GenTextures(disp, glGenTextures);
-    SET_GetBooleanv(disp, glGetBooleanv);
-    SET_GetClipPlane(disp, glGetClipPlane);
-    SET_GetColorTable(disp, glGetColorTable);
-    SET_GetColorTableParameterfv(disp, glGetColorTableParameterfv);
-    SET_GetColorTableParameteriv(disp, glGetColorTableParameteriv);
-    SET_GetConvolutionFilter(disp, glGetConvolutionFilter);
-    SET_GetConvolutionParameterfv(disp, glGetConvolutionParameterfv);
-    SET_GetConvolutionParameteriv(disp, glGetConvolutionParameteriv);
-    SET_GetDoublev(disp, glGetDoublev);
-    SET_GetError(disp, glGetError);
-    SET_GetFloatv(disp, glGetFloatv);
-    SET_GetHistogram(disp, glGetHistogram);
-    SET_GetHistogramParameterfv(disp, glGetHistogramParameterfv);
-    SET_GetHistogramParameteriv(disp, glGetHistogramParameteriv);
-    SET_GetIntegerv(disp, glGetIntegerv);
-    SET_GetLightfv(disp, glGetLightfv);
-    SET_GetLightiv(disp, glGetLightiv);
-    SET_GetMapdv(disp, glGetMapdv);
-    SET_GetMapfv(disp, glGetMapfv);
-    SET_GetMapiv(disp, glGetMapiv);
-    SET_GetMaterialfv(disp, glGetMaterialfv);
-    SET_GetMaterialiv(disp, glGetMaterialiv);
-    SET_GetMinmax(disp, glGetMinmax);
-    SET_GetMinmaxParameterfv(disp, glGetMinmaxParameterfv);
-    SET_GetMinmaxParameteriv(disp, glGetMinmaxParameteriv);
-    SET_GetPixelMapfv(disp, glGetPixelMapfv);
-    SET_GetPixelMapuiv(disp, glGetPixelMapuiv);
-    SET_GetPixelMapusv(disp, glGetPixelMapusv);
-    SET_GetPointerv(disp, glGetPointerv);
-    SET_GetPolygonStipple(disp, glGetPolygonStipple);
-    SET_GetSeparableFilter(disp, glGetSeparableFilter);
-    SET_GetString(disp, glGetString);
-    SET_GetTexEnvfv(disp, glGetTexEnvfv);
-    SET_GetTexEnviv(disp, glGetTexEnviv);
-    SET_GetTexGendv(disp, glGetTexGendv);
-    SET_GetTexGenfv(disp, glGetTexGenfv);
-    SET_GetTexGeniv(disp, glGetTexGeniv);
-    SET_GetTexImage(disp, glGetTexImage);
-    SET_GetTexLevelParameterfv(disp, glGetTexLevelParameterfv);
-    SET_GetTexLevelParameteriv(disp, glGetTexLevelParameteriv);
-    SET_GetTexParameterfv(disp, glGetTexParameterfv);
-    SET_GetTexParameteriv(disp, glGetTexParameteriv);
-    SET_Hint(disp, glHint);
-    SET_Histogram(disp, glHistogram);
-    SET_IndexMask(disp, glIndexMask);
-    SET_IndexPointer(disp, glIndexPointer);
-    SET_Indexd(disp, glIndexd);
-    SET_Indexdv(disp, glIndexdv);
-    SET_Indexf(disp, glIndexf);
-    SET_Indexfv(disp, glIndexfv);
-    SET_Indexi(disp, glIndexi);
-    SET_Indexiv(disp, glIndexiv);
-    SET_Indexs(disp, glIndexs);
-    SET_Indexsv(disp, glIndexsv);
-    SET_Indexub(disp, glIndexub);
-    SET_Indexubv(disp, glIndexubv);
-    SET_InitNames(disp, glInitNames);
-    SET_InterleavedArrays(disp, glInterleavedArrays);
-    SET_IsEnabled(disp, glIsEnabled);
-    SET_IsList(disp, glIsList);
-    SET_IsTexture(disp, glIsTexture);
-    SET_LightModelf(disp, glLightModelf);
-    SET_LightModelfv(disp, glLightModelfv);
-    SET_LightModeli(disp, glLightModeli);
-    SET_LightModeliv(disp, glLightModeliv);
-    SET_Lightf(disp, glLightf);
-    SET_Lightfv(disp, glLightfv);
-    SET_Lighti(disp, glLighti);
-    SET_Lightiv(disp, glLightiv);
-    SET_LineStipple(disp, glLineStipple);
-    SET_LineWidth(disp, glLineWidth);
-    SET_ListBase(disp, glListBase);
-    SET_LoadIdentity(disp, glLoadIdentity);
-    SET_LoadMatrixd(disp, glLoadMatrixd);
-    SET_LoadMatrixf(disp, glLoadMatrixf);
-    SET_LoadName(disp, glLoadName);
-    SET_LogicOp(disp, glLogicOp);
-    SET_Map1d(disp, glMap1d);
-    SET_Map1f(disp, glMap1f);
-    SET_Map2d(disp, glMap2d);
-    SET_Map2f(disp, glMap2f);
-    SET_MapGrid1d(disp, glMapGrid1d);
-    SET_MapGrid1f(disp, glMapGrid1f);
-    SET_MapGrid2d(disp, glMapGrid2d);
-    SET_MapGrid2f(disp, glMapGrid2f);
-    SET_Materialf(disp, glMaterialf);
-    SET_Materialfv(disp, glMaterialfv);
-    SET_Materiali(disp, glMateriali);
-    SET_Materialiv(disp, glMaterialiv);
-    SET_MatrixMode(disp, glMatrixMode);
-    SET_Minmax(disp, glMinmax);
-    SET_MultMatrixd(disp, glMultMatrixd);
-    SET_MultMatrixf(disp, glMultMatrixf);
-    SET_NewList(disp, glNewList);
-    SET_Normal3b(disp, glNormal3b);
-    SET_Normal3bv(disp, glNormal3bv);
-    SET_Normal3d(disp, glNormal3d);
-    SET_Normal3dv(disp, glNormal3dv);
-    SET_Normal3f(disp, glNormal3f);
-    SET_Normal3fv(disp, glNormal3fv);
-    SET_Normal3i(disp, glNormal3i);
-    SET_Normal3iv(disp, glNormal3iv);
-    SET_Normal3s(disp, glNormal3s);
-    SET_Normal3sv(disp, glNormal3sv);
-    SET_NormalPointer(disp, glNormalPointer);
-    SET_Ortho(disp, glOrtho);
-    SET_PassThrough(disp, glPassThrough);
-    SET_PixelMapfv(disp, glPixelMapfv);
-    SET_PixelMapuiv(disp, glPixelMapuiv);
-    SET_PixelMapusv(disp, glPixelMapusv);
-    SET_PixelStoref(disp, glPixelStoref);
-    SET_PixelStorei(disp, glPixelStorei);
-    SET_PixelTransferf(disp, glPixelTransferf);
-    SET_PixelTransferi(disp, glPixelTransferi);
-    SET_PixelZoom(disp, glPixelZoom);
-    SET_PointSize(disp, glPointSize);
-    SET_PolygonMode(disp, glPolygonMode);
-    SET_PolygonOffset(disp, glPolygonOffset);
-    SET_PolygonStipple(disp, glPolygonStipple);
-    SET_PopAttrib(disp, glPopAttrib);
-    SET_PopClientAttrib(disp, glPopClientAttrib);
-    SET_PopMatrix(disp, glPopMatrix);
-    SET_PopName(disp, glPopName);
-    SET_PrioritizeTextures(disp, glPrioritizeTextures);
-    SET_PushAttrib(disp, glPushAttrib);
-    SET_PushClientAttrib(disp, glPushClientAttrib);
-    SET_PushMatrix(disp, glPushMatrix);
-    SET_PushName(disp, glPushName);
-    SET_RasterPos2d(disp, glRasterPos2d);
-    SET_RasterPos2dv(disp, glRasterPos2dv);
-    SET_RasterPos2f(disp, glRasterPos2f);
-    SET_RasterPos2fv(disp, glRasterPos2fv);
-    SET_RasterPos2i(disp, glRasterPos2i);
-    SET_RasterPos2iv(disp, glRasterPos2iv);
-    SET_RasterPos2s(disp, glRasterPos2s);
-    SET_RasterPos2sv(disp, glRasterPos2sv);
-    SET_RasterPos3d(disp, glRasterPos3d);
-    SET_RasterPos3dv(disp, glRasterPos3dv);
-    SET_RasterPos3f(disp, glRasterPos3f);
-    SET_RasterPos3fv(disp, glRasterPos3fv);
-    SET_RasterPos3i(disp, glRasterPos3i);
-    SET_RasterPos3iv(disp, glRasterPos3iv);
-    SET_RasterPos3s(disp, glRasterPos3s);
-    SET_RasterPos3sv(disp, glRasterPos3sv);
-    SET_RasterPos4d(disp, glRasterPos4d);
-    SET_RasterPos4dv(disp, glRasterPos4dv);
-    SET_RasterPos4f(disp, glRasterPos4f);
-    SET_RasterPos4fv(disp, glRasterPos4fv);
-    SET_RasterPos4i(disp, glRasterPos4i);
-    SET_RasterPos4iv(disp, glRasterPos4iv);
-    SET_RasterPos4s(disp, glRasterPos4s);
-    SET_RasterPos4sv(disp, glRasterPos4sv);
-    SET_ReadBuffer(disp, glReadBuffer);
-    SET_ReadPixels(disp, glReadPixels);
-    SET_Rectd(disp, glRectd);
-    SET_Rectdv(disp, glRectdv);
-    SET_Rectf(disp, glRectf);
-    SET_Rectfv(disp, glRectfv);
-    SET_Recti(disp, glRecti);
-    SET_Rectiv(disp, glRectiv);
-    SET_Rects(disp, glRects);
-    SET_Rectsv(disp, glRectsv);
-    SET_RenderMode(disp, glRenderMode);
-    SET_ResetHistogram(disp, glResetHistogram);
-    SET_ResetMinmax(disp, glResetMinmax);
-    SET_Rotated(disp, glRotated);
-    SET_Rotatef(disp, glRotatef);
-    SET_Scaled(disp, glScaled);
-    SET_Scalef(disp, glScalef);
-    SET_Scissor(disp, glScissor);
-    SET_SelectBuffer(disp, glSelectBuffer);
-    SET_SeparableFilter2D(disp, glSeparableFilter2D);
-    SET_ShadeModel(disp, glShadeModel);
-    SET_StencilFunc(disp, glStencilFunc);
-    SET_StencilMask(disp, glStencilMask);
-    SET_StencilOp(disp, glStencilOp);
-    SET_TexCoord1d(disp, glTexCoord1d);
-    SET_TexCoord1dv(disp, glTexCoord1dv);
-    SET_TexCoord1f(disp, glTexCoord1f);
-    SET_TexCoord1fv(disp, glTexCoord1fv);
-    SET_TexCoord1i(disp, glTexCoord1i);
-    SET_TexCoord1iv(disp, glTexCoord1iv);
-    SET_TexCoord1s(disp, glTexCoord1s);
-    SET_TexCoord1sv(disp, glTexCoord1sv);
-    SET_TexCoord2d(disp, glTexCoord2d);
-    SET_TexCoord2dv(disp, glTexCoord2dv);
-    SET_TexCoord2f(disp, glTexCoord2f);
-    SET_TexCoord2fv(disp, glTexCoord2fv);
-    SET_TexCoord2i(disp, glTexCoord2i);
-    SET_TexCoord2iv(disp, glTexCoord2iv);
-    SET_TexCoord2s(disp, glTexCoord2s);
-    SET_TexCoord2sv(disp, glTexCoord2sv);
-    SET_TexCoord3d(disp, glTexCoord3d);
-    SET_TexCoord3dv(disp, glTexCoord3dv);
-    SET_TexCoord3f(disp, glTexCoord3f);
-    SET_TexCoord3fv(disp, glTexCoord3fv);
-    SET_TexCoord3i(disp, glTexCoord3i);
-    SET_TexCoord3iv(disp, glTexCoord3iv);
-    SET_TexCoord3s(disp, glTexCoord3s);
-    SET_TexCoord3sv(disp, glTexCoord3sv);
-    SET_TexCoord4d(disp, glTexCoord4d);
-    SET_TexCoord4dv(disp, glTexCoord4dv);
-    SET_TexCoord4f(disp, glTexCoord4f);
-    SET_TexCoord4fv(disp, glTexCoord4fv);
-    SET_TexCoord4i(disp, glTexCoord4i);
-    SET_TexCoord4iv(disp, glTexCoord4iv);
-    SET_TexCoord4s(disp, glTexCoord4s);
-    SET_TexCoord4sv(disp, glTexCoord4sv);
-    SET_TexCoordPointer(disp, glTexCoordPointer);
-    SET_TexEnvf(disp, glTexEnvf);
-    SET_TexEnvfv(disp, glTexEnvfv);
-    SET_TexEnvi(disp, glTexEnvi);
-    SET_TexEnviv(disp, glTexEnviv);
-    SET_TexGend(disp, glTexGend);
-    SET_TexGendv(disp, glTexGendv);
-    SET_TexGenf(disp, glTexGenf);
-    SET_TexGenfv(disp, glTexGenfv);
-    SET_TexGeni(disp, glTexGeni);
-    SET_TexGeniv(disp, glTexGeniv);
-    
-    /* Pointer Incompatability:
-     * internalformat is a GLenum according to /System/Library/Frameworks/OpenGL.framework/Headers/gl.h
-     * extern void glTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-     * extern void glTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-     * extern void glTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-     *
-     * and it's a GLint in glx/glapitable.h and according to the man page
-     * void ( * TexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
-     * void ( * TexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
-     * void ( * TexImage3D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
-     *
-     * <rdar://problem/6953344> gl.h contains incorrect prototypes for glTexImage[123]D
-     */
-    
-    SET_TexImage1D(disp, (void *)glTexImage1D);
-    SET_TexImage2D(disp, (void *)glTexImage2D);
-    SET_TexImage3D(disp, (void *)glTexImage3D);
-    SET_TexParameterf(disp, glTexParameterf);
-    SET_TexParameterfv(disp, glTexParameterfv);
-    SET_TexParameteri(disp, glTexParameteri);
-    SET_TexParameteriv(disp, glTexParameteriv);
-    SET_TexSubImage1D(disp, glTexSubImage1D);
-    SET_TexSubImage2D(disp, glTexSubImage2D);
-    SET_TexSubImage3D(disp, glTexSubImage3D);
-    SET_Translated(disp, glTranslated);
-    SET_Translatef(disp, glTranslatef);
-    SET_Vertex2d(disp, glVertex2d);
-    SET_Vertex2dv(disp, glVertex2dv);
-    SET_Vertex2f(disp, glVertex2f);
-    SET_Vertex2fv(disp, glVertex2fv);
-    SET_Vertex2i(disp, glVertex2i);
-    SET_Vertex2iv(disp, glVertex2iv);
-    SET_Vertex2s(disp, glVertex2s);
-    SET_Vertex2sv(disp, glVertex2sv);
-    SET_Vertex3d(disp, glVertex3d);
-    SET_Vertex3dv(disp, glVertex3dv);
-    SET_Vertex3f(disp, glVertex3f);
-    SET_Vertex3fv(disp, glVertex3fv);
-    SET_Vertex3i(disp, glVertex3i);
-    SET_Vertex3iv(disp, glVertex3iv);
-    SET_Vertex3s(disp, glVertex3s);
-    SET_Vertex3sv(disp, glVertex3sv);
-    SET_Vertex4d(disp, glVertex4d);
-    SET_Vertex4dv(disp, glVertex4dv);
-    SET_Vertex4f(disp, glVertex4f);
-    SET_Vertex4fv(disp, glVertex4fv);
-    SET_Vertex4i(disp, glVertex4i);
-    SET_Vertex4iv(disp, glVertex4iv);
-    SET_Vertex4s(disp, glVertex4s);
-    SET_Vertex4sv(disp, glVertex4sv);
-    SET_VertexPointer(disp, glVertexPointer);
-    SET_Viewport(disp, glViewport);
-
-#if GL_VERSION_2_0
-    SET_AttachShader(disp, glAttachShader);
-    SET_DeleteShader(disp, glDeleteShader);
-    SET_DetachShader(disp, glDetachShader);
-    SET_GetAttachedShaders(disp, glGetAttachedShaders);
-    SET_GetProgramInfoLog(disp, glGetProgramInfoLog);
-    SET_GetShaderInfoLog(disp, glGetShaderInfoLog);
-    SET_GetShaderiv(disp, glGetShaderiv);
-    SET_IsShader(disp, glIsShader);
-    SET_StencilFuncSeparate(disp, glStencilFuncSeparate);
-    SET_StencilMaskSeparate(disp, glStencilMaskSeparate);
-    SET_StencilOpSeparate(disp, glStencilOpSeparate);
-#endif
-
-#if GL_VERSION_2_1
-    SET_UniformMatrix2x3fv(disp, glUniformMatrix2x3fv);
-    SET_UniformMatrix2x4fv(disp, glUniformMatrix2x4fv);
-    SET_UniformMatrix3x2fv(disp, glUniformMatrix3x2fv);
-    SET_UniformMatrix3x4fv(disp, glUniformMatrix3x4fv);
-    SET_UniformMatrix4x2fv(disp, glUniformMatrix4x2fv);
-    SET_UniformMatrix4x3fv(disp, glUniformMatrix4x3fv);
-#endif
-
-#if GL_APPLE_vertex_array_object
-    SET_BindVertexArrayAPPLE(disp, glBindVertexArrayAPPLE);
-    SET_DeleteVertexArraysAPPLE(disp, glDeleteVertexArraysAPPLE);
-    SET_GenVertexArraysAPPLE(disp, glGenVertexArraysAPPLE);
-    SET_IsVertexArrayAPPLE(disp, glIsVertexArrayAPPLE);
-#endif
-
-#if GL_ARB_draw_buffers
-    SET_DrawBuffersARB(disp, glDrawBuffersARB);
-#endif
-
-#if GL_ARB_multisample
-    SET_SampleCoverageARB(disp, glSampleCoverageARB);
-#endif
-
-#if GL_ARB_multitexture
-    SET_ActiveTextureARB(disp, glActiveTextureARB);
-    SET_ClientActiveTextureARB(disp, glClientActiveTextureARB);
-    SET_MultiTexCoord1dARB(disp, glMultiTexCoord1dARB);
-    SET_MultiTexCoord1dvARB(disp, glMultiTexCoord1dvARB);
-    SET_MultiTexCoord1fARB(disp, glMultiTexCoord1fARB);
-    SET_MultiTexCoord1fvARB(disp, glMultiTexCoord1fvARB);
-    SET_MultiTexCoord1iARB(disp, glMultiTexCoord1iARB);
-    SET_MultiTexCoord1ivARB(disp, glMultiTexCoord1ivARB);
-    SET_MultiTexCoord1sARB(disp, glMultiTexCoord1sARB);
-    SET_MultiTexCoord1svARB(disp, glMultiTexCoord1svARB);
-    SET_MultiTexCoord2dARB(disp, glMultiTexCoord2dARB);
-    SET_MultiTexCoord2dvARB(disp, glMultiTexCoord2dvARB);
-    SET_MultiTexCoord2fARB(disp, glMultiTexCoord2fARB);
-    SET_MultiTexCoord2fvARB(disp, glMultiTexCoord2fvARB);
-    SET_MultiTexCoord2iARB(disp, glMultiTexCoord2iARB);
-    SET_MultiTexCoord2ivARB(disp, glMultiTexCoord2ivARB);
-    SET_MultiTexCoord2sARB(disp, glMultiTexCoord2sARB);
-    SET_MultiTexCoord2svARB(disp, glMultiTexCoord2svARB);
-    SET_MultiTexCoord3dARB(disp, glMultiTexCoord3dARB);
-    SET_MultiTexCoord3dvARB(disp, glMultiTexCoord3dvARB);
-    SET_MultiTexCoord3fARB(disp, glMultiTexCoord3fARB);
-    SET_MultiTexCoord3fvARB(disp, glMultiTexCoord3fvARB);
-    SET_MultiTexCoord3iARB(disp, glMultiTexCoord3iARB);
-    SET_MultiTexCoord3ivARB(disp, glMultiTexCoord3ivARB);
-    SET_MultiTexCoord3sARB(disp, glMultiTexCoord3sARB);
-    SET_MultiTexCoord3svARB(disp, glMultiTexCoord3svARB);
-    SET_MultiTexCoord4dARB(disp, glMultiTexCoord4dARB);
-    SET_MultiTexCoord4dvARB(disp, glMultiTexCoord4dvARB);
-    SET_MultiTexCoord4fARB(disp, glMultiTexCoord4fARB);
-    SET_MultiTexCoord4fvARB(disp, glMultiTexCoord4fvARB);
-    SET_MultiTexCoord4iARB(disp, glMultiTexCoord4iARB);
-    SET_MultiTexCoord4ivARB(disp, glMultiTexCoord4ivARB);
-    SET_MultiTexCoord4sARB(disp, glMultiTexCoord4sARB);
-    SET_MultiTexCoord4svARB(disp, glMultiTexCoord4svARB);
-#endif
-
-#if GL_ARB_occlusion_query
-    SET_BeginQueryARB(disp, glBeginQueryARB);
-    SET_DeleteQueriesARB(disp, glDeleteQueriesARB);
-    SET_EndQueryARB(disp, glEndQueryARB);
-    SET_GenQueriesARB(disp, glGenQueriesARB);
-    SET_GetQueryObjectivARB(disp, glGetQueryObjectivARB);
-    SET_GetQueryObjectuivARB(disp, glGetQueryObjectuivARB);
-    SET_GetQueryivARB(disp, glGetQueryivARB);
-    SET_IsQueryARB(disp, glIsQueryARB);
-#endif
-
-#if GL_ARB_shader_objects
-    SET_AttachObjectARB(disp, glAttachObjectARB);
-    SET_CompileShaderARB(disp, glCompileShaderARB);
-    SET_DeleteObjectARB(disp, glDeleteObjectARB);
-    SET_GetHandleARB(disp, glGetHandleARB);
-    SET_DetachObjectARB(disp, glDetachObjectARB);
-    SET_CreateProgramObjectARB(disp, glCreateProgramObjectARB);
-    SET_CreateShaderObjectARB(disp, glCreateShaderObjectARB);
-    SET_GetInfoLogARB(disp, glGetInfoLogARB);
-    SET_GetActiveUniformARB(disp, glGetActiveUniformARB);
-    SET_GetAttachedObjectsARB(disp, glGetAttachedObjectsARB);
-    SET_GetObjectParameterfvARB(disp, glGetObjectParameterfvARB);
-    SET_GetObjectParameterivARB(disp, glGetObjectParameterivARB);
-    SET_GetShaderSourceARB(disp, glGetShaderSourceARB);
-    SET_GetUniformLocationARB(disp, glGetUniformLocationARB);
-    SET_GetUniformfvARB(disp, glGetUniformfvARB);
-    SET_GetUniformivARB(disp, glGetUniformivARB);
-    SET_LinkProgramARB(disp, glLinkProgramARB);
-    SET_ShaderSourceARB(disp, glShaderSourceARB);
-    SET_Uniform1fARB(disp, glUniform1fARB);
-    SET_Uniform1fvARB(disp, glUniform1fvARB);
-    SET_Uniform1iARB(disp, glUniform1iARB);
-    SET_Uniform1ivARB(disp, glUniform1ivARB);
-    SET_Uniform2fARB(disp, glUniform2fARB);
-    SET_Uniform2fvARB(disp, glUniform2fvARB);
-    SET_Uniform2iARB(disp, glUniform2iARB);
-    SET_Uniform2ivARB(disp, glUniform2ivARB);
-    SET_Uniform3fARB(disp, glUniform3fARB);
-    SET_Uniform3fvARB(disp, glUniform3fvARB);
-    SET_Uniform3iARB(disp, glUniform3iARB);
-    SET_Uniform3ivARB(disp, glUniform3ivARB);
-    SET_Uniform4fARB(disp, glUniform4fARB);
-    SET_Uniform4fvARB(disp, glUniform4fvARB);
-    SET_Uniform4iARB(disp, glUniform4iARB);
-    SET_Uniform4ivARB(disp, glUniform4ivARB);
-    SET_UniformMatrix2fvARB(disp, glUniformMatrix2fvARB);
-    SET_UniformMatrix3fvARB(disp, glUniformMatrix3fvARB);
-    SET_UniformMatrix4fvARB(disp, glUniformMatrix4fvARB);
-    SET_UseProgramObjectARB(disp, glUseProgramObjectARB);
-    SET_ValidateProgramARB(disp, glValidateProgramARB);
-#endif
-
-#if GL_ARB_texture_compression
-    SET_CompressedTexImage1DARB(disp, glCompressedTexImage1DARB);
-    SET_CompressedTexImage2DARB(disp, glCompressedTexImage2DARB);
-    SET_CompressedTexImage3DARB(disp, glCompressedTexImage3DARB);
-    SET_CompressedTexSubImage1DARB(disp, glCompressedTexSubImage1DARB);
-    SET_CompressedTexSubImage2DARB(disp, glCompressedTexSubImage2DARB);
-    SET_CompressedTexSubImage3DARB(disp, glCompressedTexSubImage3DARB);
-    SET_GetCompressedTexImageARB(disp, glGetCompressedTexImageARB);
-#endif
-
-#if GL_ARB_transpose_matrix
-    SET_LoadTransposeMatrixdARB(disp, glLoadTransposeMatrixdARB);
-    SET_LoadTransposeMatrixfARB(disp, glLoadTransposeMatrixfARB);
-    SET_MultTransposeMatrixdARB(disp, glMultTransposeMatrixdARB);
-    SET_MultTransposeMatrixfARB(disp, glMultTransposeMatrixfARB);
-#endif
-
-#if GL_ARB_vertex_buffer_object
-    SET_BindBufferARB(disp, glBindBufferARB);
-    SET_BufferDataARB(disp, glBufferDataARB);
-    SET_BufferSubDataARB(disp, glBufferSubDataARB);
-    SET_DeleteBuffersARB(disp, glDeleteBuffersARB);
-    SET_GenBuffersARB(disp, glGenBuffersARB);
-    SET_GetBufferParameterivARB(disp, glGetBufferParameterivARB);
-    SET_GetBufferPointervARB(disp, glGetBufferPointervARB);
-    SET_GetBufferSubDataARB(disp, glGetBufferSubDataARB);
-    SET_IsBufferARB(disp, glIsBufferARB);
-    SET_MapBufferARB(disp, glMapBufferARB);
-    SET_UnmapBufferARB(disp, glUnmapBufferARB);
-#endif
-
-#if GL_ARB_vertex_program
-    SET_DisableVertexAttribArrayARB(disp, glDisableVertexAttribArrayARB);
-    SET_EnableVertexAttribArrayARB(disp, glEnableVertexAttribArrayARB);
-    SET_GetProgramEnvParameterdvARB(disp, glGetProgramEnvParameterdvARB);
-    SET_GetProgramEnvParameterfvARB(disp, glGetProgramEnvParameterfvARB);
-    SET_GetProgramLocalParameterdvARB(disp, glGetProgramLocalParameterdvARB);
-    SET_GetProgramLocalParameterfvARB(disp, glGetProgramLocalParameterfvARB);
-    SET_GetProgramStringARB(disp, glGetProgramStringARB);
-    SET_GetProgramivARB(disp, glGetProgramivARB);
-    SET_GetVertexAttribdvARB(disp, glGetVertexAttribdvARB);
-    SET_GetVertexAttribfvARB(disp, glGetVertexAttribfvARB);
-    SET_GetVertexAttribivARB(disp, glGetVertexAttribivARB);
-    SET_ProgramEnvParameter4dARB(disp, glProgramEnvParameter4dARB);
-    SET_ProgramEnvParameter4dvARB(disp, glProgramEnvParameter4dvARB);
-    SET_ProgramEnvParameter4fARB(disp, glProgramEnvParameter4fARB);
-    SET_ProgramEnvParameter4fvARB(disp, glProgramEnvParameter4fvARB);
-    SET_ProgramLocalParameter4dARB(disp, glProgramLocalParameter4dARB);
-    SET_ProgramLocalParameter4dvARB(disp, glProgramLocalParameter4dvARB);
-    SET_ProgramLocalParameter4fARB(disp, glProgramLocalParameter4fARB);
-    SET_ProgramLocalParameter4fvARB(disp, glProgramLocalParameter4fvARB);
-    SET_ProgramStringARB(disp, glProgramStringARB);
-    SET_VertexAttrib1dARB(disp, glVertexAttrib1dARB);
-    SET_VertexAttrib1dvARB(disp, glVertexAttrib1dvARB);
-    SET_VertexAttrib1fARB(disp, glVertexAttrib1fARB);
-    SET_VertexAttrib1fvARB(disp, glVertexAttrib1fvARB);
-    SET_VertexAttrib1sARB(disp, glVertexAttrib1sARB);
-    SET_VertexAttrib1svARB(disp, glVertexAttrib1svARB);
-    SET_VertexAttrib2dARB(disp, glVertexAttrib2dARB);
-    SET_VertexAttrib2dvARB(disp, glVertexAttrib2dvARB);
-    SET_VertexAttrib2fARB(disp, glVertexAttrib2fARB);
-    SET_VertexAttrib2fvARB(disp, glVertexAttrib2fvARB);
-    SET_VertexAttrib2sARB(disp, glVertexAttrib2sARB);
-    SET_VertexAttrib2svARB(disp, glVertexAttrib2svARB);
-    SET_VertexAttrib3dARB(disp, glVertexAttrib3dARB);
-    SET_VertexAttrib3dvARB(disp, glVertexAttrib3dvARB);
-    SET_VertexAttrib3fARB(disp, glVertexAttrib3fARB);
-    SET_VertexAttrib3fvARB(disp, glVertexAttrib3fvARB);
-    SET_VertexAttrib3sARB(disp, glVertexAttrib3sARB);
-    SET_VertexAttrib3svARB(disp, glVertexAttrib3svARB);
-    SET_VertexAttrib4NbvARB(disp, glVertexAttrib4NbvARB);
-    SET_VertexAttrib4NivARB(disp, glVertexAttrib4NivARB);
-    SET_VertexAttrib4NsvARB(disp, glVertexAttrib4NsvARB);
-    SET_VertexAttrib4NubARB(disp, glVertexAttrib4NubARB);
-    SET_VertexAttrib4NubvARB(disp, glVertexAttrib4NubvARB);
-    SET_VertexAttrib4NuivARB(disp, glVertexAttrib4NuivARB);
-    SET_VertexAttrib4NusvARB(disp, glVertexAttrib4NusvARB);
-    SET_VertexAttrib4bvARB(disp, glVertexAttrib4bvARB);
-    SET_VertexAttrib4dARB(disp, glVertexAttrib4dARB);
-    SET_VertexAttrib4dvARB(disp, glVertexAttrib4dvARB);
-    SET_VertexAttrib4fARB(disp, glVertexAttrib4fARB);
-    SET_VertexAttrib4fvARB(disp, glVertexAttrib4fvARB);
-    SET_VertexAttrib4ivARB(disp, glVertexAttrib4ivARB);
-    SET_VertexAttrib4sARB(disp, glVertexAttrib4sARB);
-    SET_VertexAttrib4svARB(disp, glVertexAttrib4svARB);
-    SET_VertexAttrib4ubvARB(disp, glVertexAttrib4ubvARB);
-    SET_VertexAttrib4uivARB(disp, glVertexAttrib4uivARB);
-    SET_VertexAttrib4usvARB(disp, glVertexAttrib4usvARB);
-    SET_VertexAttribPointerARB(disp, glVertexAttribPointerARB);
-#endif
-
-#if GL_ARB_vertex_shader
-    SET_BindAttribLocationARB(disp, glBindAttribLocationARB);
-    SET_GetActiveAttribARB(disp, glGetActiveAttribARB);
-    SET_GetAttribLocationARB(disp, glGetAttribLocationARB);
-#endif
-
-#if GL_ARB_window_pos
-    SET_WindowPos2dMESA(disp, glWindowPos2dARB);
-    SET_WindowPos2dvMESA(disp, glWindowPos2dvARB);
-    SET_WindowPos2fMESA(disp, glWindowPos2fARB);
-    SET_WindowPos2fvMESA(disp, glWindowPos2fvARB);
-    SET_WindowPos2iMESA(disp, glWindowPos2iARB);
-    SET_WindowPos2ivMESA(disp, glWindowPos2ivARB);
-    SET_WindowPos2sMESA(disp, glWindowPos2sARB);
-    SET_WindowPos2svMESA(disp, glWindowPos2svARB);
-    SET_WindowPos3dMESA(disp, glWindowPos3dARB);
-    SET_WindowPos3dvMESA(disp, glWindowPos3dvARB);
-    SET_WindowPos3fMESA(disp, glWindowPos3fARB);
-    SET_WindowPos3fvMESA(disp, glWindowPos3fvARB);
-    SET_WindowPos3iMESA(disp, glWindowPos3iARB);
-    SET_WindowPos3ivMESA(disp, glWindowPos3ivARB);
-    SET_WindowPos3sMESA(disp, glWindowPos3sARB);
-    SET_WindowPos3svMESA(disp, glWindowPos3svARB);
-#endif
-
-#if GL_ATI_fragment_shader
-    SET_AlphaFragmentOp1ATI(disp, glAlphaFragmentOp1ATI);
-    SET_AlphaFragmentOp2ATI(disp, glAlphaFragmentOp2ATI);
-    SET_AlphaFragmentOp3ATI(disp, glAlphaFragmentOp3ATI);
-    SET_BeginFragmentShaderATI(disp, glBeginFragmentShaderATI);
-    SET_BindFragmentShaderATI(disp, glBindFragmentShaderATI);
-    SET_ColorFragmentOp1ATI(disp, glColorFragmentOp1ATI);
-    SET_ColorFragmentOp2ATI(disp, glColorFragmentOp2ATI);
-    SET_ColorFragmentOp3ATI(disp, glColorFragmentOp3ATI);
-    SET_DeleteFragmentShaderATI(disp, glDeleteFragmentShaderATI);
-    SET_EndFragmentShaderATI(disp, glEndFragmentShaderATI);
-    SET_GenFragmentShadersATI(disp, glGenFragmentShadersATI);
-    SET_PassTexCoordATI(disp, glPassTexCoordATI);
-    SET_SampleMapATI(disp, glSampleMapATI);
-    SET_SetFragmentShaderConstantATI(disp, glSetFragmentShaderConstantATI);
-#elif GL_EXT_fragment_shader
-    SET_AlphaFragmentOp1ATI(disp, glAlphaFragmentOp1EXT);
-    SET_AlphaFragmentOp2ATI(disp, glAlphaFragmentOp2EXT);
-    SET_AlphaFragmentOp3ATI(disp, glAlphaFragmentOp3EXT);
-    SET_BeginFragmentShaderATI(disp, glBeginFragmentShaderEXT);
-    SET_BindFragmentShaderATI(disp, glBindFragmentShaderEXT);
-    SET_ColorFragmentOp1ATI(disp, glColorFragmentOp1EXT);
-    SET_ColorFragmentOp2ATI(disp, glColorFragmentOp2EXT);
-    SET_ColorFragmentOp3ATI(disp, glColorFragmentOp3EXT);
-    SET_DeleteFragmentShaderATI(disp, glDeleteFragmentShaderEXT);
-    SET_EndFragmentShaderATI(disp, glEndFragmentShaderEXT);
-    SET_GenFragmentShadersATI(disp, glGenFragmentShadersEXT);
-    SET_PassTexCoordATI(disp, glPassTexCoordEXT);
-    SET_SampleMapATI(disp, glSampleMapEXT);
-    SET_SetFragmentShaderConstantATI(disp, glSetFragmentShaderConstantEXT);
-#endif
-
-#if GL_ATI_separate_stencil
-    SET_StencilFuncSeparateATI(disp, glStencilFuncSeparateATI);
-#endif
-
-#if GL_EXT_blend_equation_separate
-    SET_BlendEquationSeparateEXT(disp, glBlendEquationSeparateEXT);
-#endif
-
-#if GL_EXT_blend_func_separate
-    SET_BlendFuncSeparateEXT(disp, glBlendFuncSeparateEXT);
-#endif
-
-#if GL_EXT_depth_bounds_test
-    SET_DepthBoundsEXT(disp, glDepthBoundsEXT);
-#endif
-
-#if GL_EXT_compiled_vertex_array
-    SET_LockArraysEXT(disp, glLockArraysEXT);
-    SET_UnlockArraysEXT(disp, glUnlockArraysEXT);
-#endif
-
-#if GL_EXT_cull_vertex
-    SET_CullParameterdvEXT(disp, glCullParameterdvEXT);
-    SET_CullParameterfvEXT(disp, glCullParameterfvEXT);
-#endif
-
-#if GL_EXT_fog_coord
-    SET_FogCoordPointerEXT(disp, glFogCoordPointerEXT);
-    SET_FogCoorddEXT(disp, glFogCoorddEXT);
-    SET_FogCoorddvEXT(disp, glFogCoorddvEXT);
-    SET_FogCoordfEXT(disp, glFogCoordfEXT);
-    SET_FogCoordfvEXT(disp, glFogCoordfvEXT);
-#endif
-
-#if GL_EXT_framebuffer_blit
-    SET_BlitFramebufferEXT(disp, glBlitFramebufferEXT);
-#endif
-
-#if GL_EXT_framebuffer_object
-    SET_BindFramebufferEXT(disp, glBindFramebufferEXT);
-    SET_BindRenderbufferEXT(disp, glBindRenderbufferEXT);
-    SET_CheckFramebufferStatusEXT(disp, glCheckFramebufferStatusEXT);
-    SET_DeleteFramebuffersEXT(disp, glDeleteFramebuffersEXT);
-    SET_DeleteRenderbuffersEXT(disp, glDeleteRenderbuffersEXT);
-    SET_FramebufferRenderbufferEXT(disp, glFramebufferRenderbufferEXT);
-    SET_FramebufferTexture1DEXT(disp, glFramebufferTexture1DEXT);
-    SET_FramebufferTexture2DEXT(disp, glFramebufferTexture2DEXT);
-    SET_FramebufferTexture3DEXT(disp, glFramebufferTexture3DEXT);
-    SET_GenerateMipmapEXT(disp, glGenerateMipmapEXT);
-    SET_GenFramebuffersEXT(disp, glGenFramebuffersEXT);
-    SET_GenRenderbuffersEXT(disp, glGenRenderbuffersEXT);
-    SET_GetFramebufferAttachmentParameterivEXT(disp, glGetFramebufferAttachmentParameterivEXT);
-    SET_GetRenderbufferParameterivEXT(disp, glGetRenderbufferParameterivEXT);
-    SET_IsFramebufferEXT(disp, glIsFramebufferEXT);
-    SET_IsRenderbufferEXT(disp, glIsRenderbufferEXT);
-    SET_RenderbufferStorageEXT(disp, glRenderbufferStorageEXT);
-#endif
-
-#if GL_EXT_gpu_program_parameters
-    SET_ProgramEnvParameters4fvEXT(disp, glProgramEnvParameters4fvEXT);
-    SET_ProgramLocalParameters4fvEXT(disp, glProgramLocalParameters4fvEXT);
-#endif
-
-#if GL_EXT_multi_draw_arrays
-    /* Pointer Incompatability:
-     * This warning can be safely ignored.  OpenGL.framework adds const to the
-     * two pointers.
-     *
-     * extern void glMultiDrawArraysEXT (GLenum, const GLint *, const GLsizei *, GLsizei);
-     *
-     * void ( * MultiDrawArraysEXT)(GLenum mode, GLint * first, GLsizei * count, GLsizei primcount);
-     */
-    SET_MultiDrawArraysEXT(disp, (void *)glMultiDrawArraysEXT);
-    SET_MultiDrawElementsEXT(disp, glMultiDrawElementsEXT);
-#endif
-
-#if GL_EXT_point_parameters
-    SET_PointParameterfEXT(disp, glPointParameterfEXT);
-    SET_PointParameterfvEXT(disp, glPointParameterfvEXT);
-#elif GL_ARB_point_parameters
-    SET_PointParameterfEXT(disp, glPointParameterfARB);
-    SET_PointParameterfvEXT(disp, glPointParameterfvARB);
-#endif
-
-#if GL_EXT_polygon_offset
-    SET_PolygonOffsetEXT(disp, glPolygonOffsetEXT);
-#endif
-
-#if GL_EXT_secondary_color
-    SET_SecondaryColor3bEXT(disp, glSecondaryColor3bEXT);
-    SET_SecondaryColor3bvEXT(disp, glSecondaryColor3bvEXT);
-    SET_SecondaryColor3dEXT(disp, glSecondaryColor3dEXT);
-    SET_SecondaryColor3dvEXT(disp, glSecondaryColor3dvEXT);
-    SET_SecondaryColor3fEXT(disp, glSecondaryColor3fEXT);
-    SET_SecondaryColor3fvEXT(disp, glSecondaryColor3fvEXT);
-    SET_SecondaryColor3iEXT(disp, glSecondaryColor3iEXT);
-    SET_SecondaryColor3ivEXT(disp, glSecondaryColor3ivEXT);
-    SET_SecondaryColor3sEXT(disp, glSecondaryColor3sEXT);
-    SET_SecondaryColor3svEXT(disp, glSecondaryColor3svEXT);
-    SET_SecondaryColor3ubEXT(disp, glSecondaryColor3ubEXT);
-    SET_SecondaryColor3ubvEXT(disp, glSecondaryColor3ubvEXT);
-    SET_SecondaryColor3uiEXT(disp, glSecondaryColor3uiEXT);
-    SET_SecondaryColor3uivEXT(disp, glSecondaryColor3uivEXT);
-    SET_SecondaryColor3usEXT(disp, glSecondaryColor3usEXT);
-    SET_SecondaryColor3usvEXT(disp, glSecondaryColor3usvEXT);
-    SET_SecondaryColorPointerEXT(disp, glSecondaryColorPointerEXT);
-#endif
-
-#if GL_EXT_stencil_two_side
-    SET_ActiveStencilFaceEXT(disp, glActiveStencilFaceEXT);
-#endif
-
-#if GL_EXT_timer_query
-    SET_GetQueryObjecti64vEXT(disp, glGetQueryObjecti64vEXT);
-    SET_GetQueryObjectui64vEXT(disp, glGetQueryObjectui64vEXT);
-#endif
-
-#if GL_EXT_vertex_array
-    SET_ColorPointerEXT(disp, glColorPointerEXT);
-    SET_EdgeFlagPointerEXT(disp, glEdgeFlagPointerEXT);
-    SET_IndexPointerEXT(disp, glIndexPointerEXT);
-    SET_NormalPointerEXT(disp, glNormalPointerEXT);
-    SET_TexCoordPointerEXT(disp, glTexCoordPointerEXT);
-    SET_VertexPointerEXT(disp, glVertexPointerEXT);
-#endif
-
-#if GL_IBM_multimode_draw_arrays
-    SET_MultiModeDrawArraysIBM(disp, glMultiModeDrawArraysIBM);
-    SET_MultiModeDrawElementsIBM(disp, glMultiModeDrawElementsIBM);
-#endif
-
-#if GL_MESA_resize_buffers
-    SET_ResizeBuffersMESA(disp, glResizeBuffersMESA);
-#endif
-
-#if GL_MESA_window_pos
-    SET_WindowPos4dMESA(disp, glWindowPos4dMESA);
-    SET_WindowPos4dvMESA(disp, glWindowPos4dvMESA);
-    SET_WindowPos4fMESA(disp, glWindowPos4fMESA);
-    SET_WindowPos4fvMESA(disp, glWindowPos4fvMESA);
-    SET_WindowPos4iMESA(disp, glWindowPos4iMESA);
-    SET_WindowPos4ivMESA(disp, glWindowPos4ivMESA);
-    SET_WindowPos4sMESA(disp, glWindowPos4sMESA);
-    SET_WindowPos4svMESA(disp, glWindowPos4svMESA);
-#endif
-
-#if GL_NV_fence
-    SET_DeleteFencesNV(disp, glDeleteFencesNV);
-    SET_FinishFenceNV(disp, glFinishFenceNV);
-    SET_GenFencesNV(disp, glGenFencesNV);
-    SET_GetFenceivNV(disp, glGetFenceivNV);
-    SET_IsFenceNV(disp, glIsFenceNV);
-    SET_SetFenceNV(disp, glSetFenceNV);
-    SET_TestFenceNV(disp, glTestFenceNV);
-#endif
-
-#if GL_NV_fragment_program
-    SET_GetProgramNamedParameterdvNV(disp, glGetProgramNamedParameterdvNV);
-    SET_GetProgramNamedParameterfvNV(disp, glGetProgramNamedParameterfvNV);
-    SET_ProgramNamedParameter4dNV(disp, glProgramNamedParameter4dNV);
-    SET_ProgramNamedParameter4dvNV(disp, glProgramNamedParameter4dvNV);
-    SET_ProgramNamedParameter4fNV(disp, glProgramNamedParameter4fNV);
-    SET_ProgramNamedParameter4fvNV(disp, glProgramNamedParameter4fvNV);
-#endif
-
-#if GL_NV_geometry_program4
-    SET_FramebufferTextureLayerEXT(disp, glFramebufferTextureLayerEXT);
-#endif
-
-#if GL_NV_point_sprite
-    SET_PointParameteriNV(disp, glPointParameteriNV);
-    SET_PointParameterivNV(disp, glPointParameterivNV);
-#endif
-
-#if GL_NV_register_combiners
-    SET_CombinerInputNV(disp, glCombinerInputNV);
-    SET_CombinerOutputNV(disp, glCombinerOutputNV);
-    SET_CombinerParameterfNV(disp, glCombinerParameterfNV);
-    SET_CombinerParameterfvNV(disp, glCombinerParameterfvNV);
-    SET_CombinerParameteriNV(disp, glCombinerParameteriNV);
-    SET_CombinerParameterivNV(disp, glCombinerParameterivNV);
-    SET_FinalCombinerInputNV(disp, glFinalCombinerInputNV);
-    SET_GetCombinerInputParameterfvNV(disp, glGetCombinerInputParameterfvNV);
-    SET_GetCombinerInputParameterivNV(disp, glGetCombinerInputParameterivNV);
-    SET_GetCombinerOutputParameterfvNV(disp, glGetCombinerOutputParameterfvNV);
-    SET_GetCombinerOutputParameterivNV(disp, glGetCombinerOutputParameterivNV);
-    SET_GetFinalCombinerInputParameterfvNV(disp, glGetFinalCombinerInputParameterfvNV);
-    SET_GetFinalCombinerInputParameterivNV(disp, glGetFinalCombinerInputParameterivNV);
-#endif
-
-#if GL_NV_vertex_array_range
-    SET_FlushVertexArrayRangeNV(disp, glFlushVertexArrayRangeNV);
-    SET_VertexArrayRangeNV(disp, glVertexArrayRangeNV);
-#endif
+    opengl_framework_path = getenv("OPENGL_FRAMEWORK_PATH");
+    if (!opengl_framework_path) {
+        opengl_framework_path = OPENGL_FRAMEWORK_PATH;
+    }
 
-#if GL_NV_vertex_program
-    SET_AreProgramsResidentNV(disp, glAreProgramsResidentNV);
-    SET_BindProgramNV(disp, glBindProgramNV);
-    SET_DeleteProgramsNV(disp, glDeleteProgramsNV);
-    SET_ExecuteProgramNV(disp, glExecuteProgramNV);
-    SET_GenProgramsNV(disp, glGenProgramsNV);
-    SET_GetProgramParameterdvNV(disp, glGetProgramParameterdvNV);
-    SET_GetProgramParameterfvNV(disp, glGetProgramParameterfvNV);
-    SET_GetProgramStringNV(disp, glGetProgramStringNV);
-    SET_GetProgramivNV(disp, glGetProgramivNV);
-    SET_GetTrackMatrixivNV(disp, glGetTrackMatrixivNV);
-    SET_GetVertexAttribPointervNV(disp, glGetVertexAttribPointervNV);
-    SET_GetVertexAttribdvNV(disp, glGetVertexAttribdvNV);
-    SET_GetVertexAttribfvNV(disp, glGetVertexAttribfvNV);
-    SET_GetVertexAttribivNV(disp, glGetVertexAttribivNV);
-    SET_IsProgramNV(disp, glIsProgramNV);
-    SET_LoadProgramNV(disp, glLoadProgramNV);
-    SET_ProgramParameters4dvNV(disp, glProgramParameters4dvNV);
-    SET_ProgramParameters4fvNV(disp, glProgramParameters4fvNV);
-    SET_RequestResidentProgramsNV(disp, glRequestResidentProgramsNV);
-    SET_TrackMatrixNV(disp, glTrackMatrixNV);
-    SET_VertexAttrib1dNV(disp, glVertexAttrib1dNV)
-    SET_VertexAttrib1dvNV(disp, glVertexAttrib1dvNV)
-    SET_VertexAttrib1fNV(disp, glVertexAttrib1fNV)
-    SET_VertexAttrib1fvNV(disp, glVertexAttrib1fvNV)
-    SET_VertexAttrib1sNV(disp, glVertexAttrib1sNV)
-    SET_VertexAttrib1svNV(disp, glVertexAttrib1svNV)
-    SET_VertexAttrib2dNV(disp, glVertexAttrib2dNV)
-    SET_VertexAttrib2dvNV(disp, glVertexAttrib2dvNV)
-    SET_VertexAttrib2fNV(disp, glVertexAttrib2fNV)
-    SET_VertexAttrib2fvNV(disp, glVertexAttrib2fvNV)
-    SET_VertexAttrib2sNV(disp, glVertexAttrib2sNV)
-    SET_VertexAttrib2svNV(disp, glVertexAttrib2svNV)
-    SET_VertexAttrib3dNV(disp, glVertexAttrib3dNV)
-    SET_VertexAttrib3dvNV(disp, glVertexAttrib3dvNV)
-    SET_VertexAttrib3fNV(disp, glVertexAttrib3fNV)
-    SET_VertexAttrib3fvNV(disp, glVertexAttrib3fvNV)
-    SET_VertexAttrib3sNV(disp, glVertexAttrib3sNV)
-    SET_VertexAttrib3svNV(disp, glVertexAttrib3svNV)
-    SET_VertexAttrib4dNV(disp, glVertexAttrib4dNV)
-    SET_VertexAttrib4dvNV(disp, glVertexAttrib4dvNV)
-    SET_VertexAttrib4fNV(disp, glVertexAttrib4fNV)
-    SET_VertexAttrib4fvNV(disp, glVertexAttrib4fvNV)
-    SET_VertexAttrib4sNV(disp, glVertexAttrib4sNV)
-    SET_VertexAttrib4svNV(disp, glVertexAttrib4svNV)
-    SET_VertexAttrib4ubNV(disp, glVertexAttrib4ubNV)
-    SET_VertexAttrib4ubvNV(disp, glVertexAttrib4ubvNV)
-    SET_VertexAttribPointerNV(disp, glVertexAttribPointerNV)
-    SET_VertexAttribs1dvNV(disp, glVertexAttribs1dvNV)
-    SET_VertexAttribs1fvNV(disp, glVertexAttribs1fvNV)
-    SET_VertexAttribs1svNV(disp, glVertexAttribs1svNV)
-    SET_VertexAttribs2dvNV(disp, glVertexAttribs2dvNV)
-    SET_VertexAttribs2fvNV(disp, glVertexAttribs2fvNV)
-    SET_VertexAttribs2svNV(disp, glVertexAttribs2svNV)
-    SET_VertexAttribs3dvNV(disp, glVertexAttribs3dvNV)
-    SET_VertexAttribs3fvNV(disp, glVertexAttribs3fvNV)
-    SET_VertexAttribs3svNV(disp, glVertexAttribs3svNV)
-    SET_VertexAttribs4dvNV(disp, glVertexAttribs4dvNV)
-    SET_VertexAttribs4fvNV(disp, glVertexAttribs4fvNV)
-    SET_VertexAttribs4svNV(disp, glVertexAttribs4svNV)
-    SET_VertexAttribs4ubvNV(disp, glVertexAttribs4ubvNV)
-#endif
+    (void) dlerror();            /*drain dlerror */
+    handle = dlopen(opengl_framework_path, RTLD_LOCAL);
 
-#if GL_SGIS_multisample
-    SET_SampleMaskSGIS(disp, glSampleMaskSGIS);
-    SET_SamplePatternSGIS(disp, glSamplePatternSGIS);
-#endif
+    if (!handle) {
+        ErrorF("unable to dlopen %s : %s, using RTLD_DEFAULT\n",
+                opengl_framework_path, dlerror());
+        handle = RTLD_DEFAULT;
+    }
 
-#if GL_SGIS_pixel_texture
-    SET_GetPixelTexGenParameterfvSGIS(disp, glGetPixelTexGenParameterfvSGIS);
-    SET_GetPixelTexGenParameterivSGIS(disp, glGetPixelTexGenParameterivSGIS);
-    SET_PixelTexGenParameterfSGIS(disp, glPixelTexGenParameterfSGIS);
-    SET_PixelTexGenParameterfvSGIS(disp, glPixelTexGenParameterfvSGIS);
-    SET_PixelTexGenParameteriSGIS(disp, glPixelTexGenParameteriSGIS);
-    SET_PixelTexGenParameterivSGIS(disp, glPixelTexGenParameterivSGIS);
-    SET_PixelTexGenSGIX(disp, glPixelTexGenSGIX);
-#endif
+    disp = _glapi_create_table_from_handle(handle, "gl");
+    assert(disp);
 
     _glapi_set_dispatch(disp);
 }
commit 830239ae4271a264e3fd4f1151de271f59b4d9fa
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Tue Jun 14 12:51:04 2011 -0700

    glx: Add _glapi_create_table_from_handle
    
    _glapi_create_table_from_handle was recently added to mesa to ease creation of
    a _glapi_table.  This commit brings this API over to xserver for use in
    XQuartz (next commit).
    
    The API was generated with scripts from current mesa followed by various
    script-foo to remove entries that are not in the server and add those which
    are still in the server but not in mesa (CullParameterdvEXT and
    CullParameterfvEXT)
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
    Reviewed-by: Adam Jackson <ajax at redhat.com>
    (cherry picked from commit ecec578e35f91a2cbc5d07bc8d45241af7bb585f)

diff --git a/glx/Makefile.am b/glx/Makefile.am
index 091c18b..699c8ff 100644
--- a/glx/Makefile.am
+++ b/glx/Makefile.am
@@ -43,6 +43,7 @@ glapi_sources =					\
 	glapitable.h				\
 	glapi.c					\
 	glapi.h					\
+	glapi_gentable.c			\
 	glapioffsets.h				\
 	glprocs.h				\
 	glthread.c				\
diff --git a/glx/glapi.h b/glx/glapi.h
index 6521f31..23e1fa3 100644
--- a/glx/glapi.h
+++ b/glx/glapi.h
@@ -140,4 +140,7 @@ _glapi_add_dispatch( const char * const * function_names,
 extern _glapi_proc
 _glapi_get_proc_address(const char *funcName);
 
+extern struct _glapi_table *
+_glapi_create_table_from_handle(void *handle, const char *symbol_prefix);
+
 #endif
diff --git a/glx/glapi_gentable.c b/glx/glapi_gentable.c
new file mode 100644
index 0000000..a9ba3af
--- /dev/null
+++ b/glx/glapi_gentable.c
@@ -0,0 +1,7583 @@
+/* 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.
+ */
+
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
+#include <execinfo.h>
+#include <dlfcn.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+#include <GL/gl.h>
+
+#include "glapi.h"
+#include "glapitable.h"
+
+#include "os.h"
+
+static void
+__glapi_gentable_NoOp(void) {
+    const char *fstr = "Unknown";
+    void *frames[2];
+
+    if(backtrace(frames, 2) == 2) {
+        Dl_info info;
+        dladdr(frames[1], &info);
+        if(info.dli_sname)
+            fstr = info.dli_sname;
+    }
+
+    LogMessage(X_ERROR, "GLX: Call to unimplemented API: %s\n", fstr);
+}
+
+static void
+__glapi_gentable_set_remaining_noop(struct _glapi_table *disp) {
+    GLuint entries = _glapi_get_dispatch_table_size();
+    void **dispatch = (void **) disp;
+    int i;
+
+    /* ISO C is annoying sometimes */
+    union {_glapi_proc p; void *v;} p;
+    p.p = __glapi_gentable_NoOp;
+
+    for(i=0; i < entries; i++)
+        if(dispatch[i] == NULL)
+            dispatch[i] = p.v;
+}
+
+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];
+    void ** procp;
+
+    if(!disp)
+        return NULL;
+
+    if(symbol_prefix == NULL)
+        symbol_prefix = "";
+
+
+    if(!disp->NewList) {
+        snprintf(symboln, sizeof(symboln), "%sNewList", symbol_prefix);
+        procp = (void **) &disp->NewList;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EndList) {
+        snprintf(symboln, sizeof(symboln), "%sEndList", symbol_prefix);
+        procp = (void **) &disp->EndList;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CallList) {
+        snprintf(symboln, sizeof(symboln), "%sCallList", symbol_prefix);
+        procp = (void **) &disp->CallList;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CallLists) {
+        snprintf(symboln, sizeof(symboln), "%sCallLists", symbol_prefix);
+        procp = (void **) &disp->CallLists;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteLists) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteLists", symbol_prefix);
+        procp = (void **) &disp->DeleteLists;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenLists) {
+        snprintf(symboln, sizeof(symboln), "%sGenLists", symbol_prefix);
+        procp = (void **) &disp->GenLists;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ListBase) {
+        snprintf(symboln, sizeof(symboln), "%sListBase", symbol_prefix);
+        procp = (void **) &disp->ListBase;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Begin) {
+        snprintf(symboln, sizeof(symboln), "%sBegin", symbol_prefix);
+        procp = (void **) &disp->Begin;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Bitmap) {
+        snprintf(symboln, sizeof(symboln), "%sBitmap", symbol_prefix);
+        procp = (void **) &disp->Bitmap;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3b) {
+        snprintf(symboln, sizeof(symboln), "%sColor3b", symbol_prefix);
+        procp = (void **) &disp->Color3b;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3bv) {
+        snprintf(symboln, sizeof(symboln), "%sColor3bv", symbol_prefix);
+        procp = (void **) &disp->Color3bv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3d) {
+        snprintf(symboln, sizeof(symboln), "%sColor3d", symbol_prefix);
+        procp = (void **) &disp->Color3d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3dv) {
+        snprintf(symboln, sizeof(symboln), "%sColor3dv", symbol_prefix);
+        procp = (void **) &disp->Color3dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3f) {
+        snprintf(symboln, sizeof(symboln), "%sColor3f", symbol_prefix);
+        procp = (void **) &disp->Color3f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3fv) {
+        snprintf(symboln, sizeof(symboln), "%sColor3fv", symbol_prefix);
+        procp = (void **) &disp->Color3fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3i) {
+        snprintf(symboln, sizeof(symboln), "%sColor3i", symbol_prefix);
+        procp = (void **) &disp->Color3i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3iv) {
+        snprintf(symboln, sizeof(symboln), "%sColor3iv", symbol_prefix);
+        procp = (void **) &disp->Color3iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3s) {
+        snprintf(symboln, sizeof(symboln), "%sColor3s", symbol_prefix);
+        procp = (void **) &disp->Color3s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3sv) {
+        snprintf(symboln, sizeof(symboln), "%sColor3sv", symbol_prefix);
+        procp = (void **) &disp->Color3sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3ub) {
+        snprintf(symboln, sizeof(symboln), "%sColor3ub", symbol_prefix);
+        procp = (void **) &disp->Color3ub;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3ubv) {
+        snprintf(symboln, sizeof(symboln), "%sColor3ubv", symbol_prefix);
+        procp = (void **) &disp->Color3ubv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3ui) {
+        snprintf(symboln, sizeof(symboln), "%sColor3ui", symbol_prefix);
+        procp = (void **) &disp->Color3ui;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3uiv) {
+        snprintf(symboln, sizeof(symboln), "%sColor3uiv", symbol_prefix);
+        procp = (void **) &disp->Color3uiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3us) {
+        snprintf(symboln, sizeof(symboln), "%sColor3us", symbol_prefix);
+        procp = (void **) &disp->Color3us;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color3usv) {
+        snprintf(symboln, sizeof(symboln), "%sColor3usv", symbol_prefix);
+        procp = (void **) &disp->Color3usv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4b) {
+        snprintf(symboln, sizeof(symboln), "%sColor4b", symbol_prefix);
+        procp = (void **) &disp->Color4b;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4bv) {
+        snprintf(symboln, sizeof(symboln), "%sColor4bv", symbol_prefix);
+        procp = (void **) &disp->Color4bv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4d) {
+        snprintf(symboln, sizeof(symboln), "%sColor4d", symbol_prefix);
+        procp = (void **) &disp->Color4d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4dv) {
+        snprintf(symboln, sizeof(symboln), "%sColor4dv", symbol_prefix);
+        procp = (void **) &disp->Color4dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4f) {
+        snprintf(symboln, sizeof(symboln), "%sColor4f", symbol_prefix);
+        procp = (void **) &disp->Color4f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4fv) {
+        snprintf(symboln, sizeof(symboln), "%sColor4fv", symbol_prefix);
+        procp = (void **) &disp->Color4fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4i) {
+        snprintf(symboln, sizeof(symboln), "%sColor4i", symbol_prefix);
+        procp = (void **) &disp->Color4i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4iv) {
+        snprintf(symboln, sizeof(symboln), "%sColor4iv", symbol_prefix);
+        procp = (void **) &disp->Color4iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4s) {
+        snprintf(symboln, sizeof(symboln), "%sColor4s", symbol_prefix);
+        procp = (void **) &disp->Color4s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4sv) {
+        snprintf(symboln, sizeof(symboln), "%sColor4sv", symbol_prefix);
+        procp = (void **) &disp->Color4sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4ub) {
+        snprintf(symboln, sizeof(symboln), "%sColor4ub", symbol_prefix);
+        procp = (void **) &disp->Color4ub;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4ubv) {
+        snprintf(symboln, sizeof(symboln), "%sColor4ubv", symbol_prefix);
+        procp = (void **) &disp->Color4ubv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4ui) {
+        snprintf(symboln, sizeof(symboln), "%sColor4ui", symbol_prefix);
+        procp = (void **) &disp->Color4ui;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4uiv) {
+        snprintf(symboln, sizeof(symboln), "%sColor4uiv", symbol_prefix);
+        procp = (void **) &disp->Color4uiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4us) {
+        snprintf(symboln, sizeof(symboln), "%sColor4us", symbol_prefix);
+        procp = (void **) &disp->Color4us;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Color4usv) {
+        snprintf(symboln, sizeof(symboln), "%sColor4usv", symbol_prefix);
+        procp = (void **) &disp->Color4usv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EdgeFlag) {
+        snprintf(symboln, sizeof(symboln), "%sEdgeFlag", symbol_prefix);
+        procp = (void **) &disp->EdgeFlag;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EdgeFlagv) {
+        snprintf(symboln, sizeof(symboln), "%sEdgeFlagv", symbol_prefix);
+        procp = (void **) &disp->EdgeFlagv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->End) {
+        snprintf(symboln, sizeof(symboln), "%sEnd", symbol_prefix);
+        procp = (void **) &disp->End;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexd) {
+        snprintf(symboln, sizeof(symboln), "%sIndexd", symbol_prefix);
+        procp = (void **) &disp->Indexd;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexdv) {
+        snprintf(symboln, sizeof(symboln), "%sIndexdv", symbol_prefix);
+        procp = (void **) &disp->Indexdv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexf) {
+        snprintf(symboln, sizeof(symboln), "%sIndexf", symbol_prefix);
+        procp = (void **) &disp->Indexf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexfv) {
+        snprintf(symboln, sizeof(symboln), "%sIndexfv", symbol_prefix);
+        procp = (void **) &disp->Indexfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexi) {
+        snprintf(symboln, sizeof(symboln), "%sIndexi", symbol_prefix);
+        procp = (void **) &disp->Indexi;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexiv) {
+        snprintf(symboln, sizeof(symboln), "%sIndexiv", symbol_prefix);
+        procp = (void **) &disp->Indexiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexs) {
+        snprintf(symboln, sizeof(symboln), "%sIndexs", symbol_prefix);
+        procp = (void **) &disp->Indexs;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexsv) {
+        snprintf(symboln, sizeof(symboln), "%sIndexsv", symbol_prefix);
+        procp = (void **) &disp->Indexsv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3b) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3b", symbol_prefix);
+        procp = (void **) &disp->Normal3b;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3bv) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3bv", symbol_prefix);
+        procp = (void **) &disp->Normal3bv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3d) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3d", symbol_prefix);
+        procp = (void **) &disp->Normal3d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3dv) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3dv", symbol_prefix);
+        procp = (void **) &disp->Normal3dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3f) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3f", symbol_prefix);
+        procp = (void **) &disp->Normal3f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3fv) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3fv", symbol_prefix);
+        procp = (void **) &disp->Normal3fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3i) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3i", symbol_prefix);
+        procp = (void **) &disp->Normal3i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3iv) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3iv", symbol_prefix);
+        procp = (void **) &disp->Normal3iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3s) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3s", symbol_prefix);
+        procp = (void **) &disp->Normal3s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Normal3sv) {
+        snprintf(symboln, sizeof(symboln), "%sNormal3sv", symbol_prefix);
+        procp = (void **) &disp->Normal3sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos2d) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos2d", symbol_prefix);
+        procp = (void **) &disp->RasterPos2d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos2dv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos2dv", symbol_prefix);
+        procp = (void **) &disp->RasterPos2dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos2f) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos2f", symbol_prefix);
+        procp = (void **) &disp->RasterPos2f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos2fv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos2fv", symbol_prefix);
+        procp = (void **) &disp->RasterPos2fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos2i) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos2i", symbol_prefix);
+        procp = (void **) &disp->RasterPos2i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos2iv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos2iv", symbol_prefix);
+        procp = (void **) &disp->RasterPos2iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos2s) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos2s", symbol_prefix);
+        procp = (void **) &disp->RasterPos2s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos2sv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos2sv", symbol_prefix);
+        procp = (void **) &disp->RasterPos2sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos3d) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos3d", symbol_prefix);
+        procp = (void **) &disp->RasterPos3d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos3dv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos3dv", symbol_prefix);
+        procp = (void **) &disp->RasterPos3dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos3f) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos3f", symbol_prefix);
+        procp = (void **) &disp->RasterPos3f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos3fv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos3fv", symbol_prefix);
+        procp = (void **) &disp->RasterPos3fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos3i) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos3i", symbol_prefix);
+        procp = (void **) &disp->RasterPos3i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos3iv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos3iv", symbol_prefix);
+        procp = (void **) &disp->RasterPos3iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos3s) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos3s", symbol_prefix);
+        procp = (void **) &disp->RasterPos3s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos3sv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos3sv", symbol_prefix);
+        procp = (void **) &disp->RasterPos3sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos4d) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos4d", symbol_prefix);
+        procp = (void **) &disp->RasterPos4d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos4dv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos4dv", symbol_prefix);
+        procp = (void **) &disp->RasterPos4dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos4f) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos4f", symbol_prefix);
+        procp = (void **) &disp->RasterPos4f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos4fv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos4fv", symbol_prefix);
+        procp = (void **) &disp->RasterPos4fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos4i) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos4i", symbol_prefix);
+        procp = (void **) &disp->RasterPos4i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos4iv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos4iv", symbol_prefix);
+        procp = (void **) &disp->RasterPos4iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos4s) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos4s", symbol_prefix);
+        procp = (void **) &disp->RasterPos4s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RasterPos4sv) {
+        snprintf(symboln, sizeof(symboln), "%sRasterPos4sv", symbol_prefix);
+        procp = (void **) &disp->RasterPos4sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Rectd) {
+        snprintf(symboln, sizeof(symboln), "%sRectd", symbol_prefix);
+        procp = (void **) &disp->Rectd;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Rectdv) {
+        snprintf(symboln, sizeof(symboln), "%sRectdv", symbol_prefix);
+        procp = (void **) &disp->Rectdv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Rectf) {
+        snprintf(symboln, sizeof(symboln), "%sRectf", symbol_prefix);
+        procp = (void **) &disp->Rectf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Rectfv) {
+        snprintf(symboln, sizeof(symboln), "%sRectfv", symbol_prefix);
+        procp = (void **) &disp->Rectfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Recti) {
+        snprintf(symboln, sizeof(symboln), "%sRecti", symbol_prefix);
+        procp = (void **) &disp->Recti;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Rectiv) {
+        snprintf(symboln, sizeof(symboln), "%sRectiv", symbol_prefix);
+        procp = (void **) &disp->Rectiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Rects) {
+        snprintf(symboln, sizeof(symboln), "%sRects", symbol_prefix);
+        procp = (void **) &disp->Rects;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Rectsv) {
+        snprintf(symboln, sizeof(symboln), "%sRectsv", symbol_prefix);
+        procp = (void **) &disp->Rectsv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord1d) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord1d", symbol_prefix);
+        procp = (void **) &disp->TexCoord1d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord1dv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord1dv", symbol_prefix);
+        procp = (void **) &disp->TexCoord1dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord1f) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord1f", symbol_prefix);
+        procp = (void **) &disp->TexCoord1f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord1fv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord1fv", symbol_prefix);
+        procp = (void **) &disp->TexCoord1fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord1i) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord1i", symbol_prefix);
+        procp = (void **) &disp->TexCoord1i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord1iv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord1iv", symbol_prefix);
+        procp = (void **) &disp->TexCoord1iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord1s) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord1s", symbol_prefix);
+        procp = (void **) &disp->TexCoord1s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord1sv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord1sv", symbol_prefix);
+        procp = (void **) &disp->TexCoord1sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord2d) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord2d", symbol_prefix);
+        procp = (void **) &disp->TexCoord2d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord2dv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord2dv", symbol_prefix);
+        procp = (void **) &disp->TexCoord2dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord2f) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord2f", symbol_prefix);
+        procp = (void **) &disp->TexCoord2f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord2fv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord2fv", symbol_prefix);
+        procp = (void **) &disp->TexCoord2fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord2i) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord2i", symbol_prefix);
+        procp = (void **) &disp->TexCoord2i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord2iv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord2iv", symbol_prefix);
+        procp = (void **) &disp->TexCoord2iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord2s) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord2s", symbol_prefix);
+        procp = (void **) &disp->TexCoord2s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord2sv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord2sv", symbol_prefix);
+        procp = (void **) &disp->TexCoord2sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord3d) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord3d", symbol_prefix);
+        procp = (void **) &disp->TexCoord3d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord3dv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord3dv", symbol_prefix);
+        procp = (void **) &disp->TexCoord3dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord3f) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord3f", symbol_prefix);
+        procp = (void **) &disp->TexCoord3f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord3fv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord3fv", symbol_prefix);
+        procp = (void **) &disp->TexCoord3fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord3i) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord3i", symbol_prefix);
+        procp = (void **) &disp->TexCoord3i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord3iv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord3iv", symbol_prefix);
+        procp = (void **) &disp->TexCoord3iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord3s) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord3s", symbol_prefix);
+        procp = (void **) &disp->TexCoord3s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord3sv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord3sv", symbol_prefix);
+        procp = (void **) &disp->TexCoord3sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord4d) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord4d", symbol_prefix);
+        procp = (void **) &disp->TexCoord4d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord4dv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord4dv", symbol_prefix);
+        procp = (void **) &disp->TexCoord4dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord4f) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord4f", symbol_prefix);
+        procp = (void **) &disp->TexCoord4f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord4fv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord4fv", symbol_prefix);
+        procp = (void **) &disp->TexCoord4fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord4i) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord4i", symbol_prefix);
+        procp = (void **) &disp->TexCoord4i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord4iv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord4iv", symbol_prefix);
+        procp = (void **) &disp->TexCoord4iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord4s) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord4s", symbol_prefix);
+        procp = (void **) &disp->TexCoord4s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoord4sv) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoord4sv", symbol_prefix);
+        procp = (void **) &disp->TexCoord4sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex2d) {
+        snprintf(symboln, sizeof(symboln), "%sVertex2d", symbol_prefix);
+        procp = (void **) &disp->Vertex2d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex2dv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex2dv", symbol_prefix);
+        procp = (void **) &disp->Vertex2dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex2f) {
+        snprintf(symboln, sizeof(symboln), "%sVertex2f", symbol_prefix);
+        procp = (void **) &disp->Vertex2f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex2fv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex2fv", symbol_prefix);
+        procp = (void **) &disp->Vertex2fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex2i) {
+        snprintf(symboln, sizeof(symboln), "%sVertex2i", symbol_prefix);
+        procp = (void **) &disp->Vertex2i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex2iv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex2iv", symbol_prefix);
+        procp = (void **) &disp->Vertex2iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex2s) {
+        snprintf(symboln, sizeof(symboln), "%sVertex2s", symbol_prefix);
+        procp = (void **) &disp->Vertex2s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex2sv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex2sv", symbol_prefix);
+        procp = (void **) &disp->Vertex2sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex3d) {
+        snprintf(symboln, sizeof(symboln), "%sVertex3d", symbol_prefix);
+        procp = (void **) &disp->Vertex3d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex3dv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex3dv", symbol_prefix);
+        procp = (void **) &disp->Vertex3dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex3f) {
+        snprintf(symboln, sizeof(symboln), "%sVertex3f", symbol_prefix);
+        procp = (void **) &disp->Vertex3f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex3fv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex3fv", symbol_prefix);
+        procp = (void **) &disp->Vertex3fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex3i) {
+        snprintf(symboln, sizeof(symboln), "%sVertex3i", symbol_prefix);
+        procp = (void **) &disp->Vertex3i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex3iv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex3iv", symbol_prefix);
+        procp = (void **) &disp->Vertex3iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex3s) {
+        snprintf(symboln, sizeof(symboln), "%sVertex3s", symbol_prefix);
+        procp = (void **) &disp->Vertex3s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex3sv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex3sv", symbol_prefix);
+        procp = (void **) &disp->Vertex3sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex4d) {
+        snprintf(symboln, sizeof(symboln), "%sVertex4d", symbol_prefix);
+        procp = (void **) &disp->Vertex4d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex4dv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex4dv", symbol_prefix);
+        procp = (void **) &disp->Vertex4dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex4f) {
+        snprintf(symboln, sizeof(symboln), "%sVertex4f", symbol_prefix);
+        procp = (void **) &disp->Vertex4f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex4fv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex4fv", symbol_prefix);
+        procp = (void **) &disp->Vertex4fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex4i) {
+        snprintf(symboln, sizeof(symboln), "%sVertex4i", symbol_prefix);
+        procp = (void **) &disp->Vertex4i;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex4iv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex4iv", symbol_prefix);
+        procp = (void **) &disp->Vertex4iv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex4s) {
+        snprintf(symboln, sizeof(symboln), "%sVertex4s", symbol_prefix);
+        procp = (void **) &disp->Vertex4s;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Vertex4sv) {
+        snprintf(symboln, sizeof(symboln), "%sVertex4sv", symbol_prefix);
+        procp = (void **) &disp->Vertex4sv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ClipPlane) {
+        snprintf(symboln, sizeof(symboln), "%sClipPlane", symbol_prefix);
+        procp = (void **) &disp->ClipPlane;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorMaterial) {
+        snprintf(symboln, sizeof(symboln), "%sColorMaterial", symbol_prefix);
+        procp = (void **) &disp->ColorMaterial;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CullFace) {
+        snprintf(symboln, sizeof(symboln), "%sCullFace", symbol_prefix);
+        procp = (void **) &disp->CullFace;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Fogf) {
+        snprintf(symboln, sizeof(symboln), "%sFogf", symbol_prefix);
+        procp = (void **) &disp->Fogf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Fogfv) {
+        snprintf(symboln, sizeof(symboln), "%sFogfv", symbol_prefix);
+        procp = (void **) &disp->Fogfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Fogi) {
+        snprintf(symboln, sizeof(symboln), "%sFogi", symbol_prefix);
+        procp = (void **) &disp->Fogi;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Fogiv) {
+        snprintf(symboln, sizeof(symboln), "%sFogiv", symbol_prefix);
+        procp = (void **) &disp->Fogiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FrontFace) {
+        snprintf(symboln, sizeof(symboln), "%sFrontFace", symbol_prefix);
+        procp = (void **) &disp->FrontFace;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Hint) {
+        snprintf(symboln, sizeof(symboln), "%sHint", symbol_prefix);
+        procp = (void **) &disp->Hint;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Lightf) {
+        snprintf(symboln, sizeof(symboln), "%sLightf", symbol_prefix);
+        procp = (void **) &disp->Lightf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Lightfv) {
+        snprintf(symboln, sizeof(symboln), "%sLightfv", symbol_prefix);
+        procp = (void **) &disp->Lightfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Lighti) {
+        snprintf(symboln, sizeof(symboln), "%sLighti", symbol_prefix);
+        procp = (void **) &disp->Lighti;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Lightiv) {
+        snprintf(symboln, sizeof(symboln), "%sLightiv", symbol_prefix);
+        procp = (void **) &disp->Lightiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LightModelf) {
+        snprintf(symboln, sizeof(symboln), "%sLightModelf", symbol_prefix);
+        procp = (void **) &disp->LightModelf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LightModelfv) {
+        snprintf(symboln, sizeof(symboln), "%sLightModelfv", symbol_prefix);
+        procp = (void **) &disp->LightModelfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LightModeli) {
+        snprintf(symboln, sizeof(symboln), "%sLightModeli", symbol_prefix);
+        procp = (void **) &disp->LightModeli;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LightModeliv) {
+        snprintf(symboln, sizeof(symboln), "%sLightModeliv", symbol_prefix);
+        procp = (void **) &disp->LightModeliv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LineStipple) {
+        snprintf(symboln, sizeof(symboln), "%sLineStipple", symbol_prefix);
+        procp = (void **) &disp->LineStipple;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LineWidth) {
+        snprintf(symboln, sizeof(symboln), "%sLineWidth", symbol_prefix);
+        procp = (void **) &disp->LineWidth;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Materialf) {
+        snprintf(symboln, sizeof(symboln), "%sMaterialf", symbol_prefix);
+        procp = (void **) &disp->Materialf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Materialfv) {
+        snprintf(symboln, sizeof(symboln), "%sMaterialfv", symbol_prefix);
+        procp = (void **) &disp->Materialfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Materiali) {
+        snprintf(symboln, sizeof(symboln), "%sMateriali", symbol_prefix);
+        procp = (void **) &disp->Materiali;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Materialiv) {
+        snprintf(symboln, sizeof(symboln), "%sMaterialiv", symbol_prefix);
+        procp = (void **) &disp->Materialiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointSize) {
+        snprintf(symboln, sizeof(symboln), "%sPointSize", symbol_prefix);
+        procp = (void **) &disp->PointSize;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PolygonMode) {
+        snprintf(symboln, sizeof(symboln), "%sPolygonMode", symbol_prefix);
+        procp = (void **) &disp->PolygonMode;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PolygonStipple) {
+        snprintf(symboln, sizeof(symboln), "%sPolygonStipple", symbol_prefix);
+        procp = (void **) &disp->PolygonStipple;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Scissor) {
+        snprintf(symboln, sizeof(symboln), "%sScissor", symbol_prefix);
+        procp = (void **) &disp->Scissor;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ShadeModel) {
+        snprintf(symboln, sizeof(symboln), "%sShadeModel", symbol_prefix);
+        procp = (void **) &disp->ShadeModel;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexParameterf) {
+        snprintf(symboln, sizeof(symboln), "%sTexParameterf", symbol_prefix);
+        procp = (void **) &disp->TexParameterf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sTexParameterfv", symbol_prefix);
+        procp = (void **) &disp->TexParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexParameteri) {
+        snprintf(symboln, sizeof(symboln), "%sTexParameteri", symbol_prefix);
+        procp = (void **) &disp->TexParameteri;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sTexParameteriv", symbol_prefix);
+        procp = (void **) &disp->TexParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexImage1D) {
+        snprintf(symboln, sizeof(symboln), "%sTexImage1D", symbol_prefix);
+        procp = (void **) &disp->TexImage1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexImage2D) {
+        snprintf(symboln, sizeof(symboln), "%sTexImage2D", symbol_prefix);
+        procp = (void **) &disp->TexImage2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexEnvf) {
+        snprintf(symboln, sizeof(symboln), "%sTexEnvf", symbol_prefix);
+        procp = (void **) &disp->TexEnvf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexEnvfv) {
+        snprintf(symboln, sizeof(symboln), "%sTexEnvfv", symbol_prefix);
+        procp = (void **) &disp->TexEnvfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexEnvi) {
+        snprintf(symboln, sizeof(symboln), "%sTexEnvi", symbol_prefix);
+        procp = (void **) &disp->TexEnvi;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexEnviv) {
+        snprintf(symboln, sizeof(symboln), "%sTexEnviv", symbol_prefix);
+        procp = (void **) &disp->TexEnviv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexGend) {
+        snprintf(symboln, sizeof(symboln), "%sTexGend", symbol_prefix);
+        procp = (void **) &disp->TexGend;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexGendv) {
+        snprintf(symboln, sizeof(symboln), "%sTexGendv", symbol_prefix);
+        procp = (void **) &disp->TexGendv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexGenf) {
+        snprintf(symboln, sizeof(symboln), "%sTexGenf", symbol_prefix);
+        procp = (void **) &disp->TexGenf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexGenfv) {
+        snprintf(symboln, sizeof(symboln), "%sTexGenfv", symbol_prefix);
+        procp = (void **) &disp->TexGenfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexGeni) {
+        snprintf(symboln, sizeof(symboln), "%sTexGeni", symbol_prefix);
+        procp = (void **) &disp->TexGeni;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexGeniv) {
+        snprintf(symboln, sizeof(symboln), "%sTexGeniv", symbol_prefix);
+        procp = (void **) &disp->TexGeniv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FeedbackBuffer) {
+        snprintf(symboln, sizeof(symboln), "%sFeedbackBuffer", symbol_prefix);
+        procp = (void **) &disp->FeedbackBuffer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SelectBuffer) {
+        snprintf(symboln, sizeof(symboln), "%sSelectBuffer", symbol_prefix);
+        procp = (void **) &disp->SelectBuffer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RenderMode) {
+        snprintf(symboln, sizeof(symboln), "%sRenderMode", symbol_prefix);
+        procp = (void **) &disp->RenderMode;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->InitNames) {
+        snprintf(symboln, sizeof(symboln), "%sInitNames", symbol_prefix);
+        procp = (void **) &disp->InitNames;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LoadName) {
+        snprintf(symboln, sizeof(symboln), "%sLoadName", symbol_prefix);
+        procp = (void **) &disp->LoadName;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PassThrough) {
+        snprintf(symboln, sizeof(symboln), "%sPassThrough", symbol_prefix);
+        procp = (void **) &disp->PassThrough;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PopName) {
+        snprintf(symboln, sizeof(symboln), "%sPopName", symbol_prefix);
+        procp = (void **) &disp->PopName;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PushName) {
+        snprintf(symboln, sizeof(symboln), "%sPushName", symbol_prefix);
+        procp = (void **) &disp->PushName;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawBuffer) {
+        snprintf(symboln, sizeof(symboln), "%sDrawBuffer", symbol_prefix);
+        procp = (void **) &disp->DrawBuffer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Clear) {
+        snprintf(symboln, sizeof(symboln), "%sClear", symbol_prefix);
+        procp = (void **) &disp->Clear;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ClearAccum) {
+        snprintf(symboln, sizeof(symboln), "%sClearAccum", symbol_prefix);
+        procp = (void **) &disp->ClearAccum;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ClearIndex) {
+        snprintf(symboln, sizeof(symboln), "%sClearIndex", symbol_prefix);
+        procp = (void **) &disp->ClearIndex;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ClearColor) {
+        snprintf(symboln, sizeof(symboln), "%sClearColor", symbol_prefix);
+        procp = (void **) &disp->ClearColor;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ClearStencil) {
+        snprintf(symboln, sizeof(symboln), "%sClearStencil", symbol_prefix);
+        procp = (void **) &disp->ClearStencil;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ClearDepth) {
+        snprintf(symboln, sizeof(symboln), "%sClearDepth", symbol_prefix);
+        procp = (void **) &disp->ClearDepth;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->StencilMask) {
+        snprintf(symboln, sizeof(symboln), "%sStencilMask", symbol_prefix);
+        procp = (void **) &disp->StencilMask;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorMask) {
+        snprintf(symboln, sizeof(symboln), "%sColorMask", symbol_prefix);
+        procp = (void **) &disp->ColorMask;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DepthMask) {
+        snprintf(symboln, sizeof(symboln), "%sDepthMask", symbol_prefix);
+        procp = (void **) &disp->DepthMask;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IndexMask) {
+        snprintf(symboln, sizeof(symboln), "%sIndexMask", symbol_prefix);
+        procp = (void **) &disp->IndexMask;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Accum) {
+        snprintf(symboln, sizeof(symboln), "%sAccum", symbol_prefix);
+        procp = (void **) &disp->Accum;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Disable) {
+        snprintf(symboln, sizeof(symboln), "%sDisable", symbol_prefix);
+        procp = (void **) &disp->Disable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Enable) {
+        snprintf(symboln, sizeof(symboln), "%sEnable", symbol_prefix);
+        procp = (void **) &disp->Enable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Finish) {
+        snprintf(symboln, sizeof(symboln), "%sFinish", symbol_prefix);
+        procp = (void **) &disp->Finish;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Flush) {
+        snprintf(symboln, sizeof(symboln), "%sFlush", symbol_prefix);
+        procp = (void **) &disp->Flush;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PopAttrib) {
+        snprintf(symboln, sizeof(symboln), "%sPopAttrib", symbol_prefix);
+        procp = (void **) &disp->PopAttrib;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PushAttrib) {
+        snprintf(symboln, sizeof(symboln), "%sPushAttrib", symbol_prefix);
+        procp = (void **) &disp->PushAttrib;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Map1d) {
+        snprintf(symboln, sizeof(symboln), "%sMap1d", symbol_prefix);
+        procp = (void **) &disp->Map1d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Map1f) {
+        snprintf(symboln, sizeof(symboln), "%sMap1f", symbol_prefix);
+        procp = (void **) &disp->Map1f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Map2d) {
+        snprintf(symboln, sizeof(symboln), "%sMap2d", symbol_prefix);
+        procp = (void **) &disp->Map2d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Map2f) {
+        snprintf(symboln, sizeof(symboln), "%sMap2f", symbol_prefix);
+        procp = (void **) &disp->Map2f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MapGrid1d) {
+        snprintf(symboln, sizeof(symboln), "%sMapGrid1d", symbol_prefix);
+        procp = (void **) &disp->MapGrid1d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MapGrid1f) {
+        snprintf(symboln, sizeof(symboln), "%sMapGrid1f", symbol_prefix);
+        procp = (void **) &disp->MapGrid1f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MapGrid2d) {
+        snprintf(symboln, sizeof(symboln), "%sMapGrid2d", symbol_prefix);
+        procp = (void **) &disp->MapGrid2d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MapGrid2f) {
+        snprintf(symboln, sizeof(symboln), "%sMapGrid2f", symbol_prefix);
+        procp = (void **) &disp->MapGrid2f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalCoord1d) {
+        snprintf(symboln, sizeof(symboln), "%sEvalCoord1d", symbol_prefix);
+        procp = (void **) &disp->EvalCoord1d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalCoord1dv) {
+        snprintf(symboln, sizeof(symboln), "%sEvalCoord1dv", symbol_prefix);
+        procp = (void **) &disp->EvalCoord1dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalCoord1f) {
+        snprintf(symboln, sizeof(symboln), "%sEvalCoord1f", symbol_prefix);
+        procp = (void **) &disp->EvalCoord1f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalCoord1fv) {
+        snprintf(symboln, sizeof(symboln), "%sEvalCoord1fv", symbol_prefix);
+        procp = (void **) &disp->EvalCoord1fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalCoord2d) {
+        snprintf(symboln, sizeof(symboln), "%sEvalCoord2d", symbol_prefix);
+        procp = (void **) &disp->EvalCoord2d;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalCoord2dv) {
+        snprintf(symboln, sizeof(symboln), "%sEvalCoord2dv", symbol_prefix);
+        procp = (void **) &disp->EvalCoord2dv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalCoord2f) {
+        snprintf(symboln, sizeof(symboln), "%sEvalCoord2f", symbol_prefix);
+        procp = (void **) &disp->EvalCoord2f;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalCoord2fv) {
+        snprintf(symboln, sizeof(symboln), "%sEvalCoord2fv", symbol_prefix);
+        procp = (void **) &disp->EvalCoord2fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalMesh1) {
+        snprintf(symboln, sizeof(symboln), "%sEvalMesh1", symbol_prefix);
+        procp = (void **) &disp->EvalMesh1;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalPoint1) {
+        snprintf(symboln, sizeof(symboln), "%sEvalPoint1", symbol_prefix);
+        procp = (void **) &disp->EvalPoint1;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalMesh2) {
+        snprintf(symboln, sizeof(symboln), "%sEvalMesh2", symbol_prefix);
+        procp = (void **) &disp->EvalMesh2;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EvalPoint2) {
+        snprintf(symboln, sizeof(symboln), "%sEvalPoint2", symbol_prefix);
+        procp = (void **) &disp->EvalPoint2;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->AlphaFunc) {
+        snprintf(symboln, sizeof(symboln), "%sAlphaFunc", symbol_prefix);
+        procp = (void **) &disp->AlphaFunc;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendFunc) {
+        snprintf(symboln, sizeof(symboln), "%sBlendFunc", symbol_prefix);
+        procp = (void **) &disp->BlendFunc;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LogicOp) {
+        snprintf(symboln, sizeof(symboln), "%sLogicOp", symbol_prefix);
+        procp = (void **) &disp->LogicOp;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->StencilFunc) {
+        snprintf(symboln, sizeof(symboln), "%sStencilFunc", symbol_prefix);
+        procp = (void **) &disp->StencilFunc;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->StencilOp) {
+        snprintf(symboln, sizeof(symboln), "%sStencilOp", symbol_prefix);
+        procp = (void **) &disp->StencilOp;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DepthFunc) {
+        snprintf(symboln, sizeof(symboln), "%sDepthFunc", symbol_prefix);
+        procp = (void **) &disp->DepthFunc;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelZoom) {
+        snprintf(symboln, sizeof(symboln), "%sPixelZoom", symbol_prefix);
+        procp = (void **) &disp->PixelZoom;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelTransferf) {
+        snprintf(symboln, sizeof(symboln), "%sPixelTransferf", symbol_prefix);
+        procp = (void **) &disp->PixelTransferf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelTransferi) {
+        snprintf(symboln, sizeof(symboln), "%sPixelTransferi", symbol_prefix);
+        procp = (void **) &disp->PixelTransferi;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelStoref) {
+        snprintf(symboln, sizeof(symboln), "%sPixelStoref", symbol_prefix);
+        procp = (void **) &disp->PixelStoref;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelStorei) {
+        snprintf(symboln, sizeof(symboln), "%sPixelStorei", symbol_prefix);
+        procp = (void **) &disp->PixelStorei;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelMapfv) {
+        snprintf(symboln, sizeof(symboln), "%sPixelMapfv", symbol_prefix);
+        procp = (void **) &disp->PixelMapfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelMapuiv) {
+        snprintf(symboln, sizeof(symboln), "%sPixelMapuiv", symbol_prefix);
+        procp = (void **) &disp->PixelMapuiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelMapusv) {
+        snprintf(symboln, sizeof(symboln), "%sPixelMapusv", symbol_prefix);
+        procp = (void **) &disp->PixelMapusv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ReadBuffer) {
+        snprintf(symboln, sizeof(symboln), "%sReadBuffer", symbol_prefix);
+        procp = (void **) &disp->ReadBuffer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyPixels) {
+        snprintf(symboln, sizeof(symboln), "%sCopyPixels", symbol_prefix);
+        procp = (void **) &disp->CopyPixels;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ReadPixels) {
+        snprintf(symboln, sizeof(symboln), "%sReadPixels", symbol_prefix);
+        procp = (void **) &disp->ReadPixels;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawPixels) {
+        snprintf(symboln, sizeof(symboln), "%sDrawPixels", symbol_prefix);
+        procp = (void **) &disp->DrawPixels;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetBooleanv) {
+        snprintf(symboln, sizeof(symboln), "%sGetBooleanv", symbol_prefix);
+        procp = (void **) &disp->GetBooleanv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetClipPlane) {
+        snprintf(symboln, sizeof(symboln), "%sGetClipPlane", symbol_prefix);
+        procp = (void **) &disp->GetClipPlane;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetDoublev) {
+        snprintf(symboln, sizeof(symboln), "%sGetDoublev", symbol_prefix);
+        procp = (void **) &disp->GetDoublev;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetError) {
+        snprintf(symboln, sizeof(symboln), "%sGetError", symbol_prefix);
+        procp = (void **) &disp->GetError;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetFloatv) {
+        snprintf(symboln, sizeof(symboln), "%sGetFloatv", symbol_prefix);
+        procp = (void **) &disp->GetFloatv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetIntegerv) {
+        snprintf(symboln, sizeof(symboln), "%sGetIntegerv", symbol_prefix);
+        procp = (void **) &disp->GetIntegerv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetLightfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetLightfv", symbol_prefix);
+        procp = (void **) &disp->GetLightfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetLightiv) {
+        snprintf(symboln, sizeof(symboln), "%sGetLightiv", symbol_prefix);
+        procp = (void **) &disp->GetLightiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMapdv) {
+        snprintf(symboln, sizeof(symboln), "%sGetMapdv", symbol_prefix);
+        procp = (void **) &disp->GetMapdv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMapfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetMapfv", symbol_prefix);
+        procp = (void **) &disp->GetMapfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMapiv) {
+        snprintf(symboln, sizeof(symboln), "%sGetMapiv", symbol_prefix);
+        procp = (void **) &disp->GetMapiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMaterialfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetMaterialfv", symbol_prefix);
+        procp = (void **) &disp->GetMaterialfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMaterialiv) {
+        snprintf(symboln, sizeof(symboln), "%sGetMaterialiv", symbol_prefix);
+        procp = (void **) &disp->GetMaterialiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetPixelMapfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetPixelMapfv", symbol_prefix);
+        procp = (void **) &disp->GetPixelMapfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetPixelMapuiv) {
+        snprintf(symboln, sizeof(symboln), "%sGetPixelMapuiv", symbol_prefix);
+        procp = (void **) &disp->GetPixelMapuiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetPixelMapusv) {
+        snprintf(symboln, sizeof(symboln), "%sGetPixelMapusv", symbol_prefix);
+        procp = (void **) &disp->GetPixelMapusv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetPolygonStipple) {
+        snprintf(symboln, sizeof(symboln), "%sGetPolygonStipple", symbol_prefix);
+        procp = (void **) &disp->GetPolygonStipple;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetString) {
+        snprintf(symboln, sizeof(symboln), "%sGetString", symbol_prefix);
+        procp = (void **) &disp->GetString;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexEnvfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexEnvfv", symbol_prefix);
+        procp = (void **) &disp->GetTexEnvfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexEnviv) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexEnviv", symbol_prefix);
+        procp = (void **) &disp->GetTexEnviv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexGendv) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexGendv", symbol_prefix);
+        procp = (void **) &disp->GetTexGendv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexGenfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexGenfv", symbol_prefix);
+        procp = (void **) &disp->GetTexGenfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexGeniv) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexGeniv", symbol_prefix);
+        procp = (void **) &disp->GetTexGeniv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexImage) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexImage", symbol_prefix);
+        procp = (void **) &disp->GetTexImage;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexParameterfv", symbol_prefix);
+        procp = (void **) &disp->GetTexParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexParameteriv", symbol_prefix);
+        procp = (void **) &disp->GetTexParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexLevelParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexLevelParameterfv", symbol_prefix);
+        procp = (void **) &disp->GetTexLevelParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTexLevelParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetTexLevelParameteriv", symbol_prefix);
+        procp = (void **) &disp->GetTexLevelParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsEnabled) {
+        snprintf(symboln, sizeof(symboln), "%sIsEnabled", symbol_prefix);
+        procp = (void **) &disp->IsEnabled;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsList) {
+        snprintf(symboln, sizeof(symboln), "%sIsList", symbol_prefix);
+        procp = (void **) &disp->IsList;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DepthRange) {
+        snprintf(symboln, sizeof(symboln), "%sDepthRange", symbol_prefix);
+        procp = (void **) &disp->DepthRange;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Frustum) {
+        snprintf(symboln, sizeof(symboln), "%sFrustum", symbol_prefix);
+        procp = (void **) &disp->Frustum;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LoadIdentity) {
+        snprintf(symboln, sizeof(symboln), "%sLoadIdentity", symbol_prefix);
+        procp = (void **) &disp->LoadIdentity;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LoadMatrixf) {
+        snprintf(symboln, sizeof(symboln), "%sLoadMatrixf", symbol_prefix);
+        procp = (void **) &disp->LoadMatrixf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LoadMatrixd) {
+        snprintf(symboln, sizeof(symboln), "%sLoadMatrixd", symbol_prefix);
+        procp = (void **) &disp->LoadMatrixd;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MatrixMode) {
+        snprintf(symboln, sizeof(symboln), "%sMatrixMode", symbol_prefix);
+        procp = (void **) &disp->MatrixMode;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultMatrixf) {
+        snprintf(symboln, sizeof(symboln), "%sMultMatrixf", symbol_prefix);
+        procp = (void **) &disp->MultMatrixf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultMatrixd) {
+        snprintf(symboln, sizeof(symboln), "%sMultMatrixd", symbol_prefix);
+        procp = (void **) &disp->MultMatrixd;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Ortho) {
+        snprintf(symboln, sizeof(symboln), "%sOrtho", symbol_prefix);
+        procp = (void **) &disp->Ortho;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PopMatrix) {
+        snprintf(symboln, sizeof(symboln), "%sPopMatrix", symbol_prefix);
+        procp = (void **) &disp->PopMatrix;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PushMatrix) {
+        snprintf(symboln, sizeof(symboln), "%sPushMatrix", symbol_prefix);
+        procp = (void **) &disp->PushMatrix;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Rotated) {
+        snprintf(symboln, sizeof(symboln), "%sRotated", symbol_prefix);
+        procp = (void **) &disp->Rotated;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Rotatef) {
+        snprintf(symboln, sizeof(symboln), "%sRotatef", symbol_prefix);
+        procp = (void **) &disp->Rotatef;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Scaled) {
+        snprintf(symboln, sizeof(symboln), "%sScaled", symbol_prefix);
+        procp = (void **) &disp->Scaled;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Scalef) {
+        snprintf(symboln, sizeof(symboln), "%sScalef", symbol_prefix);
+        procp = (void **) &disp->Scalef;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Translated) {
+        snprintf(symboln, sizeof(symboln), "%sTranslated", symbol_prefix);
+        procp = (void **) &disp->Translated;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Translatef) {
+        snprintf(symboln, sizeof(symboln), "%sTranslatef", symbol_prefix);
+        procp = (void **) &disp->Translatef;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Viewport) {
+        snprintf(symboln, sizeof(symboln), "%sViewport", symbol_prefix);
+        procp = (void **) &disp->Viewport;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ArrayElement) {
+        snprintf(symboln, sizeof(symboln), "%sArrayElement", symbol_prefix);
+        procp = (void **) &disp->ArrayElement;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ArrayElement) {
+        snprintf(symboln, sizeof(symboln), "%sArrayElementEXT", symbol_prefix);
+        procp = (void **) &disp->ArrayElement;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindTexture) {
+        snprintf(symboln, sizeof(symboln), "%sBindTexture", symbol_prefix);
+        procp = (void **) &disp->BindTexture;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindTexture) {
+        snprintf(symboln, sizeof(symboln), "%sBindTextureEXT", symbol_prefix);
+        procp = (void **) &disp->BindTexture;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorPointer) {
+        snprintf(symboln, sizeof(symboln), "%sColorPointer", symbol_prefix);
+        procp = (void **) &disp->ColorPointer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DisableClientState) {
+        snprintf(symboln, sizeof(symboln), "%sDisableClientState", symbol_prefix);
+        procp = (void **) &disp->DisableClientState;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawArrays) {
+        snprintf(symboln, sizeof(symboln), "%sDrawArrays", symbol_prefix);
+        procp = (void **) &disp->DrawArrays;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawArrays) {
+        snprintf(symboln, sizeof(symboln), "%sDrawArraysEXT", symbol_prefix);
+        procp = (void **) &disp->DrawArrays;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawElements) {
+        snprintf(symboln, sizeof(symboln), "%sDrawElements", symbol_prefix);
+        procp = (void **) &disp->DrawElements;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EdgeFlagPointer) {
+        snprintf(symboln, sizeof(symboln), "%sEdgeFlagPointer", symbol_prefix);
+        procp = (void **) &disp->EdgeFlagPointer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EnableClientState) {
+        snprintf(symboln, sizeof(symboln), "%sEnableClientState", symbol_prefix);
+        procp = (void **) &disp->EnableClientState;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IndexPointer) {
+        snprintf(symboln, sizeof(symboln), "%sIndexPointer", symbol_prefix);
+        procp = (void **) &disp->IndexPointer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexub) {
+        snprintf(symboln, sizeof(symboln), "%sIndexub", symbol_prefix);
+        procp = (void **) &disp->Indexub;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Indexubv) {
+        snprintf(symboln, sizeof(symboln), "%sIndexubv", symbol_prefix);
+        procp = (void **) &disp->Indexubv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->InterleavedArrays) {
+        snprintf(symboln, sizeof(symboln), "%sInterleavedArrays", symbol_prefix);
+        procp = (void **) &disp->InterleavedArrays;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->NormalPointer) {
+        snprintf(symboln, sizeof(symboln), "%sNormalPointer", symbol_prefix);
+        procp = (void **) &disp->NormalPointer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PolygonOffset) {
+        snprintf(symboln, sizeof(symboln), "%sPolygonOffset", symbol_prefix);
+        procp = (void **) &disp->PolygonOffset;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoordPointer) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoordPointer", symbol_prefix);
+        procp = (void **) &disp->TexCoordPointer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexPointer) {
+        snprintf(symboln, sizeof(symboln), "%sVertexPointer", symbol_prefix);
+        procp = (void **) &disp->VertexPointer;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->AreTexturesResident) {
+        snprintf(symboln, sizeof(symboln), "%sAreTexturesResident", symbol_prefix);
+        procp = (void **) &disp->AreTexturesResident;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->AreTexturesResident) {
+        snprintf(symboln, sizeof(symboln), "%sAreTexturesResidentEXT", symbol_prefix);
+        procp = (void **) &disp->AreTexturesResident;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexImage1D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexImage1D", symbol_prefix);
+        procp = (void **) &disp->CopyTexImage1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexImage1D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexImage1DEXT", symbol_prefix);
+        procp = (void **) &disp->CopyTexImage1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexImage2D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexImage2D", symbol_prefix);
+        procp = (void **) &disp->CopyTexImage2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexImage2D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexImage2DEXT", symbol_prefix);
+        procp = (void **) &disp->CopyTexImage2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexSubImage1D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage1D", symbol_prefix);
+        procp = (void **) &disp->CopyTexSubImage1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexSubImage1D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage1DEXT", symbol_prefix);
+        procp = (void **) &disp->CopyTexSubImage1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexSubImage2D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage2D", symbol_prefix);
+        procp = (void **) &disp->CopyTexSubImage2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexSubImage2D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage2DEXT", symbol_prefix);
+        procp = (void **) &disp->CopyTexSubImage2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteTextures) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteTextures", symbol_prefix);
+        procp = (void **) &disp->DeleteTextures;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteTextures) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteTexturesEXT", symbol_prefix);
+        procp = (void **) &disp->DeleteTextures;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenTextures) {
+        snprintf(symboln, sizeof(symboln), "%sGenTextures", symbol_prefix);
+        procp = (void **) &disp->GenTextures;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenTextures) {
+        snprintf(symboln, sizeof(symboln), "%sGenTexturesEXT", symbol_prefix);
+        procp = (void **) &disp->GenTextures;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetPointerv) {
+        snprintf(symboln, sizeof(symboln), "%sGetPointerv", symbol_prefix);
+        procp = (void **) &disp->GetPointerv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetPointerv) {
+        snprintf(symboln, sizeof(symboln), "%sGetPointervEXT", symbol_prefix);
+        procp = (void **) &disp->GetPointerv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsTexture) {
+        snprintf(symboln, sizeof(symboln), "%sIsTexture", symbol_prefix);
+        procp = (void **) &disp->IsTexture;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsTexture) {
+        snprintf(symboln, sizeof(symboln), "%sIsTextureEXT", symbol_prefix);
+        procp = (void **) &disp->IsTexture;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PrioritizeTextures) {
+        snprintf(symboln, sizeof(symboln), "%sPrioritizeTextures", symbol_prefix);
+        procp = (void **) &disp->PrioritizeTextures;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PrioritizeTextures) {
+        snprintf(symboln, sizeof(symboln), "%sPrioritizeTexturesEXT", symbol_prefix);
+        procp = (void **) &disp->PrioritizeTextures;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexSubImage1D) {
+        snprintf(symboln, sizeof(symboln), "%sTexSubImage1D", symbol_prefix);
+        procp = (void **) &disp->TexSubImage1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexSubImage1D) {
+        snprintf(symboln, sizeof(symboln), "%sTexSubImage1DEXT", symbol_prefix);
+        procp = (void **) &disp->TexSubImage1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexSubImage2D) {
+        snprintf(symboln, sizeof(symboln), "%sTexSubImage2D", symbol_prefix);
+        procp = (void **) &disp->TexSubImage2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexSubImage2D) {
+        snprintf(symboln, sizeof(symboln), "%sTexSubImage2DEXT", symbol_prefix);
+        procp = (void **) &disp->TexSubImage2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PopClientAttrib) {
+        snprintf(symboln, sizeof(symboln), "%sPopClientAttrib", symbol_prefix);
+        procp = (void **) &disp->PopClientAttrib;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PushClientAttrib) {
+        snprintf(symboln, sizeof(symboln), "%sPushClientAttrib", symbol_prefix);
+        procp = (void **) &disp->PushClientAttrib;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendColor) {
+        snprintf(symboln, sizeof(symboln), "%sBlendColor", symbol_prefix);
+        procp = (void **) &disp->BlendColor;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendColor) {
+        snprintf(symboln, sizeof(symboln), "%sBlendColorEXT", symbol_prefix);
+        procp = (void **) &disp->BlendColor;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendEquation) {
+        snprintf(symboln, sizeof(symboln), "%sBlendEquation", symbol_prefix);
+        procp = (void **) &disp->BlendEquation;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendEquation) {
+        snprintf(symboln, sizeof(symboln), "%sBlendEquationEXT", symbol_prefix);
+        procp = (void **) &disp->BlendEquation;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawRangeElements) {
+        snprintf(symboln, sizeof(symboln), "%sDrawRangeElements", symbol_prefix);
+        procp = (void **) &disp->DrawRangeElements;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawRangeElements) {
+        snprintf(symboln, sizeof(symboln), "%sDrawRangeElementsEXT", symbol_prefix);
+        procp = (void **) &disp->DrawRangeElements;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorTable) {
+        snprintf(symboln, sizeof(symboln), "%sColorTable", symbol_prefix);
+        procp = (void **) &disp->ColorTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorTable) {
+        snprintf(symboln, sizeof(symboln), "%sColorTableSGI", symbol_prefix);
+        procp = (void **) &disp->ColorTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorTable) {
+        snprintf(symboln, sizeof(symboln), "%sColorTableEXT", symbol_prefix);
+        procp = (void **) &disp->ColorTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorTableParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sColorTableParameterfv", symbol_prefix);
+        procp = (void **) &disp->ColorTableParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorTableParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sColorTableParameterfvSGI", symbol_prefix);
+        procp = (void **) &disp->ColorTableParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorTableParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sColorTableParameteriv", symbol_prefix);
+        procp = (void **) &disp->ColorTableParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorTableParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sColorTableParameterivSGI", symbol_prefix);
+        procp = (void **) &disp->ColorTableParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyColorTable) {
+        snprintf(symboln, sizeof(symboln), "%sCopyColorTable", symbol_prefix);
+        procp = (void **) &disp->CopyColorTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyColorTable) {
+        snprintf(symboln, sizeof(symboln), "%sCopyColorTableSGI", symbol_prefix);
+        procp = (void **) &disp->CopyColorTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetColorTable) {
+        snprintf(symboln, sizeof(symboln), "%sGetColorTable", symbol_prefix);
+        procp = (void **) &disp->GetColorTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetColorTable) {
+        snprintf(symboln, sizeof(symboln), "%sGetColorTableSGI", symbol_prefix);
+        procp = (void **) &disp->GetColorTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetColorTable) {
+        snprintf(symboln, sizeof(symboln), "%sGetColorTableEXT", symbol_prefix);
+        procp = (void **) &disp->GetColorTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetColorTableParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterfv", symbol_prefix);
+        procp = (void **) &disp->GetColorTableParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetColorTableParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterfvSGI", symbol_prefix);
+        procp = (void **) &disp->GetColorTableParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetColorTableParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterfvEXT", symbol_prefix);
+        procp = (void **) &disp->GetColorTableParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetColorTableParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetColorTableParameteriv", symbol_prefix);
+        procp = (void **) &disp->GetColorTableParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetColorTableParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterivSGI", symbol_prefix);
+        procp = (void **) &disp->GetColorTableParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetColorTableParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetColorTableParameterivEXT", symbol_prefix);
+        procp = (void **) &disp->GetColorTableParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorSubTable) {
+        snprintf(symboln, sizeof(symboln), "%sColorSubTable", symbol_prefix);
+        procp = (void **) &disp->ColorSubTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorSubTable) {
+        snprintf(symboln, sizeof(symboln), "%sColorSubTableEXT", symbol_prefix);
+        procp = (void **) &disp->ColorSubTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyColorSubTable) {
+        snprintf(symboln, sizeof(symboln), "%sCopyColorSubTable", symbol_prefix);
+        procp = (void **) &disp->CopyColorSubTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyColorSubTable) {
+        snprintf(symboln, sizeof(symboln), "%sCopyColorSubTableEXT", symbol_prefix);
+        procp = (void **) &disp->CopyColorSubTable;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionFilter1D) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionFilter1D", symbol_prefix);
+        procp = (void **) &disp->ConvolutionFilter1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionFilter1D) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionFilter1DEXT", symbol_prefix);
+        procp = (void **) &disp->ConvolutionFilter1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionFilter2D) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionFilter2D", symbol_prefix);
+        procp = (void **) &disp->ConvolutionFilter2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionFilter2D) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionFilter2DEXT", symbol_prefix);
+        procp = (void **) &disp->ConvolutionFilter2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionParameterf) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionParameterf", symbol_prefix);
+        procp = (void **) &disp->ConvolutionParameterf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionParameterf) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionParameterfEXT", symbol_prefix);
+        procp = (void **) &disp->ConvolutionParameterf;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionParameterfv", symbol_prefix);
+        procp = (void **) &disp->ConvolutionParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionParameterfvEXT", symbol_prefix);
+        procp = (void **) &disp->ConvolutionParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionParameteri) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionParameteri", symbol_prefix);
+        procp = (void **) &disp->ConvolutionParameteri;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionParameteri) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionParameteriEXT", symbol_prefix);
+        procp = (void **) &disp->ConvolutionParameteri;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionParameteriv", symbol_prefix);
+        procp = (void **) &disp->ConvolutionParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ConvolutionParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sConvolutionParameterivEXT", symbol_prefix);
+        procp = (void **) &disp->ConvolutionParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyConvolutionFilter1D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyConvolutionFilter1D", symbol_prefix);
+        procp = (void **) &disp->CopyConvolutionFilter1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyConvolutionFilter1D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyConvolutionFilter1DEXT", symbol_prefix);
+        procp = (void **) &disp->CopyConvolutionFilter1D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyConvolutionFilter2D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyConvolutionFilter2D", symbol_prefix);
+        procp = (void **) &disp->CopyConvolutionFilter2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyConvolutionFilter2D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyConvolutionFilter2DEXT", symbol_prefix);
+        procp = (void **) &disp->CopyConvolutionFilter2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetConvolutionFilter) {
+        snprintf(symboln, sizeof(symboln), "%sGetConvolutionFilter", symbol_prefix);
+        procp = (void **) &disp->GetConvolutionFilter;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetConvolutionFilter) {
+        snprintf(symboln, sizeof(symboln), "%sGetConvolutionFilterEXT", symbol_prefix);
+        procp = (void **) &disp->GetConvolutionFilter;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetConvolutionParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetConvolutionParameterfv", symbol_prefix);
+        procp = (void **) &disp->GetConvolutionParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetConvolutionParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetConvolutionParameterfvEXT", symbol_prefix);
+        procp = (void **) &disp->GetConvolutionParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetConvolutionParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetConvolutionParameteriv", symbol_prefix);
+        procp = (void **) &disp->GetConvolutionParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetConvolutionParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetConvolutionParameterivEXT", symbol_prefix);
+        procp = (void **) &disp->GetConvolutionParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetSeparableFilter) {
+        snprintf(symboln, sizeof(symboln), "%sGetSeparableFilter", symbol_prefix);
+        procp = (void **) &disp->GetSeparableFilter;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetSeparableFilter) {
+        snprintf(symboln, sizeof(symboln), "%sGetSeparableFilterEXT", symbol_prefix);
+        procp = (void **) &disp->GetSeparableFilter;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SeparableFilter2D) {
+        snprintf(symboln, sizeof(symboln), "%sSeparableFilter2D", symbol_prefix);
+        procp = (void **) &disp->SeparableFilter2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SeparableFilter2D) {
+        snprintf(symboln, sizeof(symboln), "%sSeparableFilter2DEXT", symbol_prefix);
+        procp = (void **) &disp->SeparableFilter2D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetHistogram) {
+        snprintf(symboln, sizeof(symboln), "%sGetHistogram", symbol_prefix);
+        procp = (void **) &disp->GetHistogram;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetHistogram) {
+        snprintf(symboln, sizeof(symboln), "%sGetHistogramEXT", symbol_prefix);
+        procp = (void **) &disp->GetHistogram;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetHistogramParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetHistogramParameterfv", symbol_prefix);
+        procp = (void **) &disp->GetHistogramParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetHistogramParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetHistogramParameterfvEXT", symbol_prefix);
+        procp = (void **) &disp->GetHistogramParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetHistogramParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetHistogramParameteriv", symbol_prefix);
+        procp = (void **) &disp->GetHistogramParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetHistogramParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetHistogramParameterivEXT", symbol_prefix);
+        procp = (void **) &disp->GetHistogramParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMinmax) {
+        snprintf(symboln, sizeof(symboln), "%sGetMinmax", symbol_prefix);
+        procp = (void **) &disp->GetMinmax;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMinmax) {
+        snprintf(symboln, sizeof(symboln), "%sGetMinmaxEXT", symbol_prefix);
+        procp = (void **) &disp->GetMinmax;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMinmaxParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetMinmaxParameterfv", symbol_prefix);
+        procp = (void **) &disp->GetMinmaxParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMinmaxParameterfv) {
+        snprintf(symboln, sizeof(symboln), "%sGetMinmaxParameterfvEXT", symbol_prefix);
+        procp = (void **) &disp->GetMinmaxParameterfv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMinmaxParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetMinmaxParameteriv", symbol_prefix);
+        procp = (void **) &disp->GetMinmaxParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetMinmaxParameteriv) {
+        snprintf(symboln, sizeof(symboln), "%sGetMinmaxParameterivEXT", symbol_prefix);
+        procp = (void **) &disp->GetMinmaxParameteriv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Histogram) {
+        snprintf(symboln, sizeof(symboln), "%sHistogram", symbol_prefix);
+        procp = (void **) &disp->Histogram;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Histogram) {
+        snprintf(symboln, sizeof(symboln), "%sHistogramEXT", symbol_prefix);
+        procp = (void **) &disp->Histogram;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Minmax) {
+        snprintf(symboln, sizeof(symboln), "%sMinmax", symbol_prefix);
+        procp = (void **) &disp->Minmax;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Minmax) {
+        snprintf(symboln, sizeof(symboln), "%sMinmaxEXT", symbol_prefix);
+        procp = (void **) &disp->Minmax;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ResetHistogram) {
+        snprintf(symboln, sizeof(symboln), "%sResetHistogram", symbol_prefix);
+        procp = (void **) &disp->ResetHistogram;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ResetHistogram) {
+        snprintf(symboln, sizeof(symboln), "%sResetHistogramEXT", symbol_prefix);
+        procp = (void **) &disp->ResetHistogram;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ResetMinmax) {
+        snprintf(symboln, sizeof(symboln), "%sResetMinmax", symbol_prefix);
+        procp = (void **) &disp->ResetMinmax;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ResetMinmax) {
+        snprintf(symboln, sizeof(symboln), "%sResetMinmaxEXT", symbol_prefix);
+        procp = (void **) &disp->ResetMinmax;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexImage3D) {
+        snprintf(symboln, sizeof(symboln), "%sTexImage3D", symbol_prefix);
+        procp = (void **) &disp->TexImage3D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexImage3D) {
+        snprintf(symboln, sizeof(symboln), "%sTexImage3DEXT", symbol_prefix);
+        procp = (void **) &disp->TexImage3D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexSubImage3D) {
+        snprintf(symboln, sizeof(symboln), "%sTexSubImage3D", symbol_prefix);
+        procp = (void **) &disp->TexSubImage3D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexSubImage3D) {
+        snprintf(symboln, sizeof(symboln), "%sTexSubImage3DEXT", symbol_prefix);
+        procp = (void **) &disp->TexSubImage3D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexSubImage3D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage3D", symbol_prefix);
+        procp = (void **) &disp->CopyTexSubImage3D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CopyTexSubImage3D) {
+        snprintf(symboln, sizeof(symboln), "%sCopyTexSubImage3DEXT", symbol_prefix);
+        procp = (void **) &disp->CopyTexSubImage3D;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ActiveTextureARB) {
+        snprintf(symboln, sizeof(symboln), "%sActiveTexture", symbol_prefix);
+        procp = (void **) &disp->ActiveTextureARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ActiveTextureARB) {
+        snprintf(symboln, sizeof(symboln), "%sActiveTextureARB", symbol_prefix);
+        procp = (void **) &disp->ActiveTextureARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ClientActiveTextureARB) {
+        snprintf(symboln, sizeof(symboln), "%sClientActiveTexture", symbol_prefix);
+        procp = (void **) &disp->ClientActiveTextureARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ClientActiveTextureARB) {
+        snprintf(symboln, sizeof(symboln), "%sClientActiveTextureARB", symbol_prefix);
+        procp = (void **) &disp->ClientActiveTextureARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1dARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1d", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1dARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1dARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1dv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1dvARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1fARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1f", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1fARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1fARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1fv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1fvARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1iARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1i", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1iARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1iARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1iv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1ivARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1sARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1s", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1sARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1sARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1svARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1sv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord1svARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord1svARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord1svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2dARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2d", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2dARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2dARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2dv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2dvARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2fARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2f", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2fARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2fARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2fv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2fvARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2iARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2i", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2iARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2iARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2iv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2ivARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2sARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2s", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2sARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2sARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2svARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2sv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord2svARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord2svARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord2svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3dARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3d", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3dARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3dARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3dv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3dvARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3fARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3f", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3fARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3fARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3fv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3fvARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3iARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3i", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3iARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3iARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3iv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3ivARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3sARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3s", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3sARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3sARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3svARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3sv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord3svARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord3svARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord3svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4dARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4d", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4dARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4dARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4dv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4dvARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4fARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4f", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4fARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4fARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4fv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4fvARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4iARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4i", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4iARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4iARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4iv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4ivARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4sARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4s", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4sARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4sARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4svARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4sv", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiTexCoord4svARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultiTexCoord4svARB", symbol_prefix);
+        procp = (void **) &disp->MultiTexCoord4svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->AttachShader) {
+        snprintf(symboln, sizeof(symboln), "%sAttachShader", symbol_prefix);
+        procp = (void **) &disp->AttachShader;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CreateProgram) {
+        snprintf(symboln, sizeof(symboln), "%sCreateProgram", symbol_prefix);
+        procp = (void **) &disp->CreateProgram;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CreateShader) {
+        snprintf(symboln, sizeof(symboln), "%sCreateShader", symbol_prefix);
+        procp = (void **) &disp->CreateShader;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteProgram) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteProgram", symbol_prefix);
+        procp = (void **) &disp->DeleteProgram;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteShader) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteShader", symbol_prefix);
+        procp = (void **) &disp->DeleteShader;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DetachShader) {
+        snprintf(symboln, sizeof(symboln), "%sDetachShader", symbol_prefix);
+        procp = (void **) &disp->DetachShader;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetAttachedShaders) {
+        snprintf(symboln, sizeof(symboln), "%sGetAttachedShaders", symbol_prefix);
+        procp = (void **) &disp->GetAttachedShaders;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramInfoLog) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramInfoLog", symbol_prefix);
+        procp = (void **) &disp->GetProgramInfoLog;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramiv) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramiv", symbol_prefix);
+        procp = (void **) &disp->GetProgramiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetShaderInfoLog) {
+        snprintf(symboln, sizeof(symboln), "%sGetShaderInfoLog", symbol_prefix);
+        procp = (void **) &disp->GetShaderInfoLog;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetShaderiv) {
+        snprintf(symboln, sizeof(symboln), "%sGetShaderiv", symbol_prefix);
+        procp = (void **) &disp->GetShaderiv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsProgram) {
+        snprintf(symboln, sizeof(symboln), "%sIsProgram", symbol_prefix);
+        procp = (void **) &disp->IsProgram;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsShader) {
+        snprintf(symboln, sizeof(symboln), "%sIsShader", symbol_prefix);
+        procp = (void **) &disp->IsShader;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->StencilFuncSeparate) {
+        snprintf(symboln, sizeof(symboln), "%sStencilFuncSeparate", symbol_prefix);
+        procp = (void **) &disp->StencilFuncSeparate;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->StencilMaskSeparate) {
+        snprintf(symboln, sizeof(symboln), "%sStencilMaskSeparate", symbol_prefix);
+        procp = (void **) &disp->StencilMaskSeparate;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->StencilOpSeparate) {
+        snprintf(symboln, sizeof(symboln), "%sStencilOpSeparate", symbol_prefix);
+        procp = (void **) &disp->StencilOpSeparate;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->StencilOpSeparate) {
+        snprintf(symboln, sizeof(symboln), "%sStencilOpSeparateATI", symbol_prefix);
+        procp = (void **) &disp->StencilOpSeparate;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix2x3fv) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix2x3fv", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix2x3fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix2x4fv) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix2x4fv", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix2x4fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix3x2fv) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix3x2fv", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix3x2fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix3x4fv) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix3x4fv", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix3x4fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix4x2fv) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix4x2fv", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix4x2fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix4x3fv) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix4x3fv", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix4x3fv;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LoadTransposeMatrixdARB) {
+        snprintf(symboln, sizeof(symboln), "%sLoadTransposeMatrixd", symbol_prefix);
+        procp = (void **) &disp->LoadTransposeMatrixdARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LoadTransposeMatrixdARB) {
+        snprintf(symboln, sizeof(symboln), "%sLoadTransposeMatrixdARB", symbol_prefix);
+        procp = (void **) &disp->LoadTransposeMatrixdARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LoadTransposeMatrixfARB) {
+        snprintf(symboln, sizeof(symboln), "%sLoadTransposeMatrixf", symbol_prefix);
+        procp = (void **) &disp->LoadTransposeMatrixfARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LoadTransposeMatrixfARB) {
+        snprintf(symboln, sizeof(symboln), "%sLoadTransposeMatrixfARB", symbol_prefix);
+        procp = (void **) &disp->LoadTransposeMatrixfARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultTransposeMatrixdARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultTransposeMatrixd", symbol_prefix);
+        procp = (void **) &disp->MultTransposeMatrixdARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultTransposeMatrixdARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultTransposeMatrixdARB", symbol_prefix);
+        procp = (void **) &disp->MultTransposeMatrixdARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultTransposeMatrixfARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultTransposeMatrixf", symbol_prefix);
+        procp = (void **) &disp->MultTransposeMatrixfARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultTransposeMatrixfARB) {
+        snprintf(symboln, sizeof(symboln), "%sMultTransposeMatrixfARB", symbol_prefix);
+        procp = (void **) &disp->MultTransposeMatrixfARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SampleCoverageARB) {
+        snprintf(symboln, sizeof(symboln), "%sSampleCoverage", symbol_prefix);
+        procp = (void **) &disp->SampleCoverageARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SampleCoverageARB) {
+        snprintf(symboln, sizeof(symboln), "%sSampleCoverageARB", symbol_prefix);
+        procp = (void **) &disp->SampleCoverageARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexImage1DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexImage1D", symbol_prefix);
+        procp = (void **) &disp->CompressedTexImage1DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexImage1DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexImage1DARB", symbol_prefix);
+        procp = (void **) &disp->CompressedTexImage1DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexImage2DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexImage2D", symbol_prefix);
+        procp = (void **) &disp->CompressedTexImage2DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexImage2DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexImage2DARB", symbol_prefix);
+        procp = (void **) &disp->CompressedTexImage2DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexImage3DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexImage3D", symbol_prefix);
+        procp = (void **) &disp->CompressedTexImage3DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexImage3DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexImage3DARB", symbol_prefix);
+        procp = (void **) &disp->CompressedTexImage3DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexSubImage1DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage1D", symbol_prefix);
+        procp = (void **) &disp->CompressedTexSubImage1DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexSubImage1DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage1DARB", symbol_prefix);
+        procp = (void **) &disp->CompressedTexSubImage1DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexSubImage2DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage2D", symbol_prefix);
+        procp = (void **) &disp->CompressedTexSubImage2DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexSubImage2DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage2DARB", symbol_prefix);
+        procp = (void **) &disp->CompressedTexSubImage2DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexSubImage3DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage3D", symbol_prefix);
+        procp = (void **) &disp->CompressedTexSubImage3DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompressedTexSubImage3DARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompressedTexSubImage3DARB", symbol_prefix);
+        procp = (void **) &disp->CompressedTexSubImage3DARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetCompressedTexImageARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetCompressedTexImage", symbol_prefix);
+        procp = (void **) &disp->GetCompressedTexImageARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetCompressedTexImageARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetCompressedTexImageARB", symbol_prefix);
+        procp = (void **) &disp->GetCompressedTexImageARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DisableVertexAttribArrayARB) {
+        snprintf(symboln, sizeof(symboln), "%sDisableVertexAttribArray", symbol_prefix);
+        procp = (void **) &disp->DisableVertexAttribArrayARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DisableVertexAttribArrayARB) {
+        snprintf(symboln, sizeof(symboln), "%sDisableVertexAttribArrayARB", symbol_prefix);
+        procp = (void **) &disp->DisableVertexAttribArrayARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EnableVertexAttribArrayARB) {
+        snprintf(symboln, sizeof(symboln), "%sEnableVertexAttribArray", symbol_prefix);
+        procp = (void **) &disp->EnableVertexAttribArrayARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EnableVertexAttribArrayARB) {
+        snprintf(symboln, sizeof(symboln), "%sEnableVertexAttribArrayARB", symbol_prefix);
+        procp = (void **) &disp->EnableVertexAttribArrayARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramEnvParameterdvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramEnvParameterdvARB", symbol_prefix);
+        procp = (void **) &disp->GetProgramEnvParameterdvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramEnvParameterfvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramEnvParameterfvARB", symbol_prefix);
+        procp = (void **) &disp->GetProgramEnvParameterfvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramLocalParameterdvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramLocalParameterdvARB", symbol_prefix);
+        procp = (void **) &disp->GetProgramLocalParameterdvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramLocalParameterfvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramLocalParameterfvARB", symbol_prefix);
+        procp = (void **) &disp->GetProgramLocalParameterfvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramStringARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramStringARB", symbol_prefix);
+        procp = (void **) &disp->GetProgramStringARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramivARB", symbol_prefix);
+        procp = (void **) &disp->GetProgramivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribdvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribdv", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribdvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribdvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribdvARB", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribdvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribfvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribfv", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribfvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribfvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribfvARB", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribfvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribiv", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribivARB", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramEnvParameter4dARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramEnvParameter4dARB", symbol_prefix);
+        procp = (void **) &disp->ProgramEnvParameter4dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramEnvParameter4dARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramParameter4dNV", symbol_prefix);
+        procp = (void **) &disp->ProgramEnvParameter4dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramEnvParameter4dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramEnvParameter4dvARB", symbol_prefix);
+        procp = (void **) &disp->ProgramEnvParameter4dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramEnvParameter4dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramParameter4dvNV", symbol_prefix);
+        procp = (void **) &disp->ProgramEnvParameter4dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramEnvParameter4fARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramEnvParameter4fARB", symbol_prefix);
+        procp = (void **) &disp->ProgramEnvParameter4fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramEnvParameter4fARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramParameter4fNV", symbol_prefix);
+        procp = (void **) &disp->ProgramEnvParameter4fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramEnvParameter4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramEnvParameter4fvARB", symbol_prefix);
+        procp = (void **) &disp->ProgramEnvParameter4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramEnvParameter4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramParameter4fvNV", symbol_prefix);
+        procp = (void **) &disp->ProgramEnvParameter4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramLocalParameter4dARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramLocalParameter4dARB", symbol_prefix);
+        procp = (void **) &disp->ProgramLocalParameter4dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramLocalParameter4dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramLocalParameter4dvARB", symbol_prefix);
+        procp = (void **) &disp->ProgramLocalParameter4dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramLocalParameter4fARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramLocalParameter4fARB", symbol_prefix);
+        procp = (void **) &disp->ProgramLocalParameter4fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramLocalParameter4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramLocalParameter4fvARB", symbol_prefix);
+        procp = (void **) &disp->ProgramLocalParameter4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramStringARB) {
+        snprintf(symboln, sizeof(symboln), "%sProgramStringARB", symbol_prefix);
+        procp = (void **) &disp->ProgramStringARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1dARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1d", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1dARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1fARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1f", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1fARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1sARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1s", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1sARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1sARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1svARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1sv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1svARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1svARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2dARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2d", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2dARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2fARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2f", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2fARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2sARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2s", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2sARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2sARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2svARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2sv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2svARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2svARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3dARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3d", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3dARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3fARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3f", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3fARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3sARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3s", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3sARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3sARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3svARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3sv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3svARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3svARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NbvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nbv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NbvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NbvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NbvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NbvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NivARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Niv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NivARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NivARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NsvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nsv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NsvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NsvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NsvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NsvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NubARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nub", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NubARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NubARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NubARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NubARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NubvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nubv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NubvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NubvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NubvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NubvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NuivARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nuiv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NuivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NuivARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NuivARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NuivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NusvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4Nusv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NusvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4NusvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4NusvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4NusvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4bvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4bv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4bvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4bvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4bvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4bvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4dARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4d", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4dARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4dARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4dvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4dvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4fARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4f", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4fARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4iv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ivARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4sARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4s", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4sARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4sARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4sARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4svARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4sv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4svARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4svARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4svARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4ubvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ubv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4ubvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4ubvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ubvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4ubvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4uivARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4uiv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4uivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4uivARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4uivARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4uivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4usvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4usv", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4usvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4usvARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4usvARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4usvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribPointerARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribPointer", symbol_prefix);
+        procp = (void **) &disp->VertexAttribPointerARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribPointerARB) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribPointerARB", symbol_prefix);
+        procp = (void **) &disp->VertexAttribPointerARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindBufferARB) {
+        snprintf(symboln, sizeof(symboln), "%sBindBuffer", symbol_prefix);
+        procp = (void **) &disp->BindBufferARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindBufferARB) {
+        snprintf(symboln, sizeof(symboln), "%sBindBufferARB", symbol_prefix);
+        procp = (void **) &disp->BindBufferARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BufferDataARB) {
+        snprintf(symboln, sizeof(symboln), "%sBufferData", symbol_prefix);
+        procp = (void **) &disp->BufferDataARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BufferDataARB) {
+        snprintf(symboln, sizeof(symboln), "%sBufferDataARB", symbol_prefix);
+        procp = (void **) &disp->BufferDataARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BufferSubDataARB) {
+        snprintf(symboln, sizeof(symboln), "%sBufferSubData", symbol_prefix);
+        procp = (void **) &disp->BufferSubDataARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BufferSubDataARB) {
+        snprintf(symboln, sizeof(symboln), "%sBufferSubDataARB", symbol_prefix);
+        procp = (void **) &disp->BufferSubDataARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteBuffersARB) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteBuffers", symbol_prefix);
+        procp = (void **) &disp->DeleteBuffersARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteBuffersARB) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteBuffersARB", symbol_prefix);
+        procp = (void **) &disp->DeleteBuffersARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenBuffersARB) {
+        snprintf(symboln, sizeof(symboln), "%sGenBuffers", symbol_prefix);
+        procp = (void **) &disp->GenBuffersARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenBuffersARB) {
+        snprintf(symboln, sizeof(symboln), "%sGenBuffersARB", symbol_prefix);
+        procp = (void **) &disp->GenBuffersARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetBufferParameterivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetBufferParameteriv", symbol_prefix);
+        procp = (void **) &disp->GetBufferParameterivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetBufferParameterivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetBufferParameterivARB", symbol_prefix);
+        procp = (void **) &disp->GetBufferParameterivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetBufferPointervARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetBufferPointerv", symbol_prefix);
+        procp = (void **) &disp->GetBufferPointervARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetBufferPointervARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetBufferPointervARB", symbol_prefix);
+        procp = (void **) &disp->GetBufferPointervARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetBufferSubDataARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetBufferSubData", symbol_prefix);
+        procp = (void **) &disp->GetBufferSubDataARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetBufferSubDataARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetBufferSubDataARB", symbol_prefix);
+        procp = (void **) &disp->GetBufferSubDataARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsBufferARB) {
+        snprintf(symboln, sizeof(symboln), "%sIsBuffer", symbol_prefix);
+        procp = (void **) &disp->IsBufferARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsBufferARB) {
+        snprintf(symboln, sizeof(symboln), "%sIsBufferARB", symbol_prefix);
+        procp = (void **) &disp->IsBufferARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MapBufferARB) {
+        snprintf(symboln, sizeof(symboln), "%sMapBuffer", symbol_prefix);
+        procp = (void **) &disp->MapBufferARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MapBufferARB) {
+        snprintf(symboln, sizeof(symboln), "%sMapBufferARB", symbol_prefix);
+        procp = (void **) &disp->MapBufferARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UnmapBufferARB) {
+        snprintf(symboln, sizeof(symboln), "%sUnmapBuffer", symbol_prefix);
+        procp = (void **) &disp->UnmapBufferARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UnmapBufferARB) {
+        snprintf(symboln, sizeof(symboln), "%sUnmapBufferARB", symbol_prefix);
+        procp = (void **) &disp->UnmapBufferARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BeginQueryARB) {
+        snprintf(symboln, sizeof(symboln), "%sBeginQuery", symbol_prefix);
+        procp = (void **) &disp->BeginQueryARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BeginQueryARB) {
+        snprintf(symboln, sizeof(symboln), "%sBeginQueryARB", symbol_prefix);
+        procp = (void **) &disp->BeginQueryARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteQueriesARB) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteQueries", symbol_prefix);
+        procp = (void **) &disp->DeleteQueriesARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteQueriesARB) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteQueriesARB", symbol_prefix);
+        procp = (void **) &disp->DeleteQueriesARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EndQueryARB) {
+        snprintf(symboln, sizeof(symboln), "%sEndQuery", symbol_prefix);
+        procp = (void **) &disp->EndQueryARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EndQueryARB) {
+        snprintf(symboln, sizeof(symboln), "%sEndQueryARB", symbol_prefix);
+        procp = (void **) &disp->EndQueryARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenQueriesARB) {
+        snprintf(symboln, sizeof(symboln), "%sGenQueries", symbol_prefix);
+        procp = (void **) &disp->GenQueriesARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenQueriesARB) {
+        snprintf(symboln, sizeof(symboln), "%sGenQueriesARB", symbol_prefix);
+        procp = (void **) &disp->GenQueriesARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetQueryObjectivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetQueryObjectiv", symbol_prefix);
+        procp = (void **) &disp->GetQueryObjectivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetQueryObjectivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetQueryObjectivARB", symbol_prefix);
+        procp = (void **) &disp->GetQueryObjectivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetQueryObjectuivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetQueryObjectuiv", symbol_prefix);
+        procp = (void **) &disp->GetQueryObjectuivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetQueryObjectuivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetQueryObjectuivARB", symbol_prefix);
+        procp = (void **) &disp->GetQueryObjectuivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetQueryivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetQueryiv", symbol_prefix);
+        procp = (void **) &disp->GetQueryivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetQueryivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetQueryivARB", symbol_prefix);
+        procp = (void **) &disp->GetQueryivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsQueryARB) {
+        snprintf(symboln, sizeof(symboln), "%sIsQuery", symbol_prefix);
+        procp = (void **) &disp->IsQueryARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsQueryARB) {
+        snprintf(symboln, sizeof(symboln), "%sIsQueryARB", symbol_prefix);
+        procp = (void **) &disp->IsQueryARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->AttachObjectARB) {
+        snprintf(symboln, sizeof(symboln), "%sAttachObjectARB", symbol_prefix);
+        procp = (void **) &disp->AttachObjectARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompileShaderARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompileShader", symbol_prefix);
+        procp = (void **) &disp->CompileShaderARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CompileShaderARB) {
+        snprintf(symboln, sizeof(symboln), "%sCompileShaderARB", symbol_prefix);
+        procp = (void **) &disp->CompileShaderARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CreateProgramObjectARB) {
+        snprintf(symboln, sizeof(symboln), "%sCreateProgramObjectARB", symbol_prefix);
+        procp = (void **) &disp->CreateProgramObjectARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CreateShaderObjectARB) {
+        snprintf(symboln, sizeof(symboln), "%sCreateShaderObjectARB", symbol_prefix);
+        procp = (void **) &disp->CreateShaderObjectARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteObjectARB) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteObjectARB", symbol_prefix);
+        procp = (void **) &disp->DeleteObjectARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DetachObjectARB) {
+        snprintf(symboln, sizeof(symboln), "%sDetachObjectARB", symbol_prefix);
+        procp = (void **) &disp->DetachObjectARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetActiveUniformARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetActiveUniform", symbol_prefix);
+        procp = (void **) &disp->GetActiveUniformARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetActiveUniformARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetActiveUniformARB", symbol_prefix);
+        procp = (void **) &disp->GetActiveUniformARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetAttachedObjectsARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetAttachedObjectsARB", symbol_prefix);
+        procp = (void **) &disp->GetAttachedObjectsARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetHandleARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetHandleARB", symbol_prefix);
+        procp = (void **) &disp->GetHandleARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetInfoLogARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetInfoLogARB", symbol_prefix);
+        procp = (void **) &disp->GetInfoLogARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetObjectParameterfvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetObjectParameterfvARB", symbol_prefix);
+        procp = (void **) &disp->GetObjectParameterfvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetObjectParameterivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetObjectParameterivARB", symbol_prefix);
+        procp = (void **) &disp->GetObjectParameterivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetShaderSourceARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetShaderSource", symbol_prefix);
+        procp = (void **) &disp->GetShaderSourceARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetShaderSourceARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetShaderSourceARB", symbol_prefix);
+        procp = (void **) &disp->GetShaderSourceARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetUniformLocationARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetUniformLocation", symbol_prefix);
+        procp = (void **) &disp->GetUniformLocationARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetUniformLocationARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetUniformLocationARB", symbol_prefix);
+        procp = (void **) &disp->GetUniformLocationARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetUniformfvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetUniformfv", symbol_prefix);
+        procp = (void **) &disp->GetUniformfvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetUniformfvARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetUniformfvARB", symbol_prefix);
+        procp = (void **) &disp->GetUniformfvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetUniformivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetUniformiv", symbol_prefix);
+        procp = (void **) &disp->GetUniformivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetUniformivARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetUniformivARB", symbol_prefix);
+        procp = (void **) &disp->GetUniformivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LinkProgramARB) {
+        snprintf(symboln, sizeof(symboln), "%sLinkProgram", symbol_prefix);
+        procp = (void **) &disp->LinkProgramARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LinkProgramARB) {
+        snprintf(symboln, sizeof(symboln), "%sLinkProgramARB", symbol_prefix);
+        procp = (void **) &disp->LinkProgramARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ShaderSourceARB) {
+        snprintf(symboln, sizeof(symboln), "%sShaderSource", symbol_prefix);
+        procp = (void **) &disp->ShaderSourceARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ShaderSourceARB) {
+        snprintf(symboln, sizeof(symboln), "%sShaderSourceARB", symbol_prefix);
+        procp = (void **) &disp->ShaderSourceARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform1fARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform1f", symbol_prefix);
+        procp = (void **) &disp->Uniform1fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform1fARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform1fARB", symbol_prefix);
+        procp = (void **) &disp->Uniform1fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform1fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform1fv", symbol_prefix);
+        procp = (void **) &disp->Uniform1fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform1fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform1fvARB", symbol_prefix);
+        procp = (void **) &disp->Uniform1fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform1iARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform1i", symbol_prefix);
+        procp = (void **) &disp->Uniform1iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform1iARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform1iARB", symbol_prefix);
+        procp = (void **) &disp->Uniform1iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform1ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform1iv", symbol_prefix);
+        procp = (void **) &disp->Uniform1ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform1ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform1ivARB", symbol_prefix);
+        procp = (void **) &disp->Uniform1ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform2fARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform2f", symbol_prefix);
+        procp = (void **) &disp->Uniform2fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform2fARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform2fARB", symbol_prefix);
+        procp = (void **) &disp->Uniform2fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform2fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform2fv", symbol_prefix);
+        procp = (void **) &disp->Uniform2fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform2fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform2fvARB", symbol_prefix);
+        procp = (void **) &disp->Uniform2fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform2iARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform2i", symbol_prefix);
+        procp = (void **) &disp->Uniform2iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform2iARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform2iARB", symbol_prefix);
+        procp = (void **) &disp->Uniform2iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform2ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform2iv", symbol_prefix);
+        procp = (void **) &disp->Uniform2ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform2ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform2ivARB", symbol_prefix);
+        procp = (void **) &disp->Uniform2ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform3fARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform3f", symbol_prefix);
+        procp = (void **) &disp->Uniform3fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform3fARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform3fARB", symbol_prefix);
+        procp = (void **) &disp->Uniform3fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform3fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform3fv", symbol_prefix);
+        procp = (void **) &disp->Uniform3fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform3fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform3fvARB", symbol_prefix);
+        procp = (void **) &disp->Uniform3fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform3iARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform3i", symbol_prefix);
+        procp = (void **) &disp->Uniform3iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform3iARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform3iARB", symbol_prefix);
+        procp = (void **) &disp->Uniform3iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform3ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform3iv", symbol_prefix);
+        procp = (void **) &disp->Uniform3ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform3ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform3ivARB", symbol_prefix);
+        procp = (void **) &disp->Uniform3ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform4fARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform4f", symbol_prefix);
+        procp = (void **) &disp->Uniform4fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform4fARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform4fARB", symbol_prefix);
+        procp = (void **) &disp->Uniform4fARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform4fv", symbol_prefix);
+        procp = (void **) &disp->Uniform4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform4fvARB", symbol_prefix);
+        procp = (void **) &disp->Uniform4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform4iARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform4i", symbol_prefix);
+        procp = (void **) &disp->Uniform4iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform4iARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform4iARB", symbol_prefix);
+        procp = (void **) &disp->Uniform4iARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform4ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform4iv", symbol_prefix);
+        procp = (void **) &disp->Uniform4ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->Uniform4ivARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniform4ivARB", symbol_prefix);
+        procp = (void **) &disp->Uniform4ivARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix2fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix2fv", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix2fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix2fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix2fvARB", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix2fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix3fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix3fv", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix3fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix3fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix3fvARB", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix3fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix4fv", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UniformMatrix4fvARB) {
+        snprintf(symboln, sizeof(symboln), "%sUniformMatrix4fvARB", symbol_prefix);
+        procp = (void **) &disp->UniformMatrix4fvARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UseProgramObjectARB) {
+        snprintf(symboln, sizeof(symboln), "%sUseProgram", symbol_prefix);
+        procp = (void **) &disp->UseProgramObjectARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UseProgramObjectARB) {
+        snprintf(symboln, sizeof(symboln), "%sUseProgramObjectARB", symbol_prefix);
+        procp = (void **) &disp->UseProgramObjectARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ValidateProgramARB) {
+        snprintf(symboln, sizeof(symboln), "%sValidateProgram", symbol_prefix);
+        procp = (void **) &disp->ValidateProgramARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ValidateProgramARB) {
+        snprintf(symboln, sizeof(symboln), "%sValidateProgramARB", symbol_prefix);
+        procp = (void **) &disp->ValidateProgramARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindAttribLocationARB) {
+        snprintf(symboln, sizeof(symboln), "%sBindAttribLocation", symbol_prefix);
+        procp = (void **) &disp->BindAttribLocationARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindAttribLocationARB) {
+        snprintf(symboln, sizeof(symboln), "%sBindAttribLocationARB", symbol_prefix);
+        procp = (void **) &disp->BindAttribLocationARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetActiveAttribARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetActiveAttrib", symbol_prefix);
+        procp = (void **) &disp->GetActiveAttribARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetActiveAttribARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetActiveAttribARB", symbol_prefix);
+        procp = (void **) &disp->GetActiveAttribARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetAttribLocationARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetAttribLocation", symbol_prefix);
+        procp = (void **) &disp->GetAttribLocationARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetAttribLocationARB) {
+        snprintf(symboln, sizeof(symboln), "%sGetAttribLocationARB", symbol_prefix);
+        procp = (void **) &disp->GetAttribLocationARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawBuffersARB) {
+        snprintf(symboln, sizeof(symboln), "%sDrawBuffers", symbol_prefix);
+        procp = (void **) &disp->DrawBuffersARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawBuffersARB) {
+        snprintf(symboln, sizeof(symboln), "%sDrawBuffersARB", symbol_prefix);
+        procp = (void **) &disp->DrawBuffersARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DrawBuffersARB) {
+        snprintf(symboln, sizeof(symboln), "%sDrawBuffersATI", symbol_prefix);
+        procp = (void **) &disp->DrawBuffersARB;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PolygonOffsetEXT) {
+        snprintf(symboln, sizeof(symboln), "%sPolygonOffsetEXT", symbol_prefix);
+        procp = (void **) &disp->PolygonOffsetEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetPixelTexGenParameterfvSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sGetPixelTexGenParameterfvSGIS", symbol_prefix);
+        procp = (void **) &disp->GetPixelTexGenParameterfvSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetPixelTexGenParameterivSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sGetPixelTexGenParameterivSGIS", symbol_prefix);
+        procp = (void **) &disp->GetPixelTexGenParameterivSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelTexGenParameterfSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sPixelTexGenParameterfSGIS", symbol_prefix);
+        procp = (void **) &disp->PixelTexGenParameterfSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelTexGenParameterfvSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sPixelTexGenParameterfvSGIS", symbol_prefix);
+        procp = (void **) &disp->PixelTexGenParameterfvSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelTexGenParameteriSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sPixelTexGenParameteriSGIS", symbol_prefix);
+        procp = (void **) &disp->PixelTexGenParameteriSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelTexGenParameterivSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sPixelTexGenParameterivSGIS", symbol_prefix);
+        procp = (void **) &disp->PixelTexGenParameterivSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SampleMaskSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sSampleMaskSGIS", symbol_prefix);
+        procp = (void **) &disp->SampleMaskSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SampleMaskSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sSampleMaskEXT", symbol_prefix);
+        procp = (void **) &disp->SampleMaskSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SamplePatternSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sSamplePatternSGIS", symbol_prefix);
+        procp = (void **) &disp->SamplePatternSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SamplePatternSGIS) {
+        snprintf(symboln, sizeof(symboln), "%sSamplePatternEXT", symbol_prefix);
+        procp = (void **) &disp->SamplePatternSGIS;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sColorPointerEXT", symbol_prefix);
+        procp = (void **) &disp->ColorPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EdgeFlagPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sEdgeFlagPointerEXT", symbol_prefix);
+        procp = (void **) &disp->EdgeFlagPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IndexPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sIndexPointerEXT", symbol_prefix);
+        procp = (void **) &disp->IndexPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->NormalPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sNormalPointerEXT", symbol_prefix);
+        procp = (void **) &disp->NormalPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TexCoordPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sTexCoordPointerEXT", symbol_prefix);
+        procp = (void **) &disp->TexCoordPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sVertexPointerEXT", symbol_prefix);
+        procp = (void **) &disp->VertexPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterfEXT) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameterf", symbol_prefix);
+        procp = (void **) &disp->PointParameterfEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterfEXT) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameterfARB", symbol_prefix);
+        procp = (void **) &disp->PointParameterfEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterfEXT) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameterfEXT", symbol_prefix);
+        procp = (void **) &disp->PointParameterfEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterfEXT) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameterfSGIS", symbol_prefix);
+        procp = (void **) &disp->PointParameterfEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterfvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameterfv", symbol_prefix);
+        procp = (void **) &disp->PointParameterfvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterfvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameterfvARB", symbol_prefix);
+        procp = (void **) &disp->PointParameterfvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterfvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameterfvEXT", symbol_prefix);
+        procp = (void **) &disp->PointParameterfvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterfvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameterfvSGIS", symbol_prefix);
+        procp = (void **) &disp->PointParameterfvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LockArraysEXT) {
+        snprintf(symboln, sizeof(symboln), "%sLockArraysEXT", symbol_prefix);
+        procp = (void **) &disp->LockArraysEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->UnlockArraysEXT) {
+        snprintf(symboln, sizeof(symboln), "%sUnlockArraysEXT", symbol_prefix);
+        procp = (void **) &disp->UnlockArraysEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3bEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3b", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3bEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3bEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3bEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3bEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3bvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3bv", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3bvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3bvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3bvEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3bvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3dEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3d", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3dEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3dEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3dEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3dEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3dvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3dv", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3dvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3dvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3dvEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3dvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3fEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3f", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3fEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3fEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3fEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3fEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3fvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3fv", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3fvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3fvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3fvEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3fvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3iEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3i", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3iEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3iEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3iEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3iEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3ivEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3iv", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3ivEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3ivEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ivEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3ivEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3sEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3s", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3sEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3sEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3sEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3sEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3svEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3sv", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3svEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3svEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3svEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3svEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3ubEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ub", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3ubEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3ubEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ubEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3ubEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3ubvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ubv", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3ubvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3ubvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ubvEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3ubvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3uiEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3ui", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3uiEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3uiEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3uiEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3uiEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3uivEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3uiv", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3uivEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3uivEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3uivEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3uivEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3usEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3us", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3usEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3usEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3usEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3usEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3usvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3usv", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3usvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColor3usvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColor3usvEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColor3usvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColorPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColorPointer", symbol_prefix);
+        procp = (void **) &disp->SecondaryColorPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SecondaryColorPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sSecondaryColorPointerEXT", symbol_prefix);
+        procp = (void **) &disp->SecondaryColorPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiDrawArraysEXT) {
+        snprintf(symboln, sizeof(symboln), "%sMultiDrawArrays", symbol_prefix);
+        procp = (void **) &disp->MultiDrawArraysEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiDrawArraysEXT) {
+        snprintf(symboln, sizeof(symboln), "%sMultiDrawArraysEXT", symbol_prefix);
+        procp = (void **) &disp->MultiDrawArraysEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiDrawElementsEXT) {
+        snprintf(symboln, sizeof(symboln), "%sMultiDrawElements", symbol_prefix);
+        procp = (void **) &disp->MultiDrawElementsEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiDrawElementsEXT) {
+        snprintf(symboln, sizeof(symboln), "%sMultiDrawElementsEXT", symbol_prefix);
+        procp = (void **) &disp->MultiDrawElementsEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoordPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoordPointer", symbol_prefix);
+        procp = (void **) &disp->FogCoordPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoordPointerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoordPointerEXT", symbol_prefix);
+        procp = (void **) &disp->FogCoordPointerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoorddEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoordd", symbol_prefix);
+        procp = (void **) &disp->FogCoorddEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoorddEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoorddEXT", symbol_prefix);
+        procp = (void **) &disp->FogCoorddEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoorddvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoorddv", symbol_prefix);
+        procp = (void **) &disp->FogCoorddvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoorddvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoorddvEXT", symbol_prefix);
+        procp = (void **) &disp->FogCoorddvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoordfEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoordf", symbol_prefix);
+        procp = (void **) &disp->FogCoordfEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoordfEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoordfEXT", symbol_prefix);
+        procp = (void **) &disp->FogCoordfEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoordfvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoordfv", symbol_prefix);
+        procp = (void **) &disp->FogCoordfvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FogCoordfvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFogCoordfvEXT", symbol_prefix);
+        procp = (void **) &disp->FogCoordfvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PixelTexGenSGIX) {
+        snprintf(symboln, sizeof(symboln), "%sPixelTexGenSGIX", symbol_prefix);
+        procp = (void **) &disp->PixelTexGenSGIX;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendFuncSeparateEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBlendFuncSeparate", symbol_prefix);
+        procp = (void **) &disp->BlendFuncSeparateEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendFuncSeparateEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBlendFuncSeparateEXT", symbol_prefix);
+        procp = (void **) &disp->BlendFuncSeparateEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendFuncSeparateEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBlendFuncSeparateINGR", symbol_prefix);
+        procp = (void **) &disp->BlendFuncSeparateEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FlushVertexArrayRangeNV) {
+        snprintf(symboln, sizeof(symboln), "%sFlushVertexArrayRangeNV", symbol_prefix);
+        procp = (void **) &disp->FlushVertexArrayRangeNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexArrayRangeNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexArrayRangeNV", symbol_prefix);
+        procp = (void **) &disp->VertexArrayRangeNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CombinerInputNV) {
+        snprintf(symboln, sizeof(symboln), "%sCombinerInputNV", symbol_prefix);
+        procp = (void **) &disp->CombinerInputNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CombinerOutputNV) {
+        snprintf(symboln, sizeof(symboln), "%sCombinerOutputNV", symbol_prefix);
+        procp = (void **) &disp->CombinerOutputNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CombinerParameterfNV) {
+        snprintf(symboln, sizeof(symboln), "%sCombinerParameterfNV", symbol_prefix);
+        procp = (void **) &disp->CombinerParameterfNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CombinerParameterfvNV) {
+        snprintf(symboln, sizeof(symboln), "%sCombinerParameterfvNV", symbol_prefix);
+        procp = (void **) &disp->CombinerParameterfvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CombinerParameteriNV) {
+        snprintf(symboln, sizeof(symboln), "%sCombinerParameteriNV", symbol_prefix);
+        procp = (void **) &disp->CombinerParameteriNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CombinerParameterivNV) {
+        snprintf(symboln, sizeof(symboln), "%sCombinerParameterivNV", symbol_prefix);
+        procp = (void **) &disp->CombinerParameterivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FinalCombinerInputNV) {
+        snprintf(symboln, sizeof(symboln), "%sFinalCombinerInputNV", symbol_prefix);
+        procp = (void **) &disp->FinalCombinerInputNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetCombinerInputParameterfvNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetCombinerInputParameterfvNV", symbol_prefix);
+        procp = (void **) &disp->GetCombinerInputParameterfvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetCombinerInputParameterivNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetCombinerInputParameterivNV", symbol_prefix);
+        procp = (void **) &disp->GetCombinerInputParameterivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetCombinerOutputParameterfvNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetCombinerOutputParameterfvNV", symbol_prefix);
+        procp = (void **) &disp->GetCombinerOutputParameterfvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetCombinerOutputParameterivNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetCombinerOutputParameterivNV", symbol_prefix);
+        procp = (void **) &disp->GetCombinerOutputParameterivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetFinalCombinerInputParameterfvNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetFinalCombinerInputParameterfvNV", symbol_prefix);
+        procp = (void **) &disp->GetFinalCombinerInputParameterfvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetFinalCombinerInputParameterivNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetFinalCombinerInputParameterivNV", symbol_prefix);
+        procp = (void **) &disp->GetFinalCombinerInputParameterivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ResizeBuffersMESA) {
+        snprintf(symboln, sizeof(symboln), "%sResizeBuffersMESA", symbol_prefix);
+        procp = (void **) &disp->ResizeBuffersMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2dMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2d", symbol_prefix);
+        procp = (void **) &disp->WindowPos2dMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2dMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2dARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos2dMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2dMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2dMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos2dMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2dvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2dv", symbol_prefix);
+        procp = (void **) &disp->WindowPos2dvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2dvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2dvARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos2dvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2dvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2dvMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos2dvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2fMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2f", symbol_prefix);
+        procp = (void **) &disp->WindowPos2fMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2fMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2fARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos2fMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2fMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2fMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos2fMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2fvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2fv", symbol_prefix);
+        procp = (void **) &disp->WindowPos2fvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2fvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2fvARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos2fvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2fvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2fvMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos2fvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2iMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2i", symbol_prefix);
+        procp = (void **) &disp->WindowPos2iMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2iMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2iARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos2iMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2iMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2iMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos2iMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2ivMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2iv", symbol_prefix);
+        procp = (void **) &disp->WindowPos2ivMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2ivMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2ivARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos2ivMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2ivMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2ivMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos2ivMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2sMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2s", symbol_prefix);
+        procp = (void **) &disp->WindowPos2sMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2sMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2sARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos2sMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2sMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2sMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos2sMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2svMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2sv", symbol_prefix);
+        procp = (void **) &disp->WindowPos2svMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2svMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2svARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos2svMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos2svMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos2svMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos2svMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3dMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3d", symbol_prefix);
+        procp = (void **) &disp->WindowPos3dMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3dMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3dARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos3dMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3dMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3dMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos3dMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3dvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3dv", symbol_prefix);
+        procp = (void **) &disp->WindowPos3dvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3dvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3dvARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos3dvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3dvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3dvMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos3dvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3fMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3f", symbol_prefix);
+        procp = (void **) &disp->WindowPos3fMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3fMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3fARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos3fMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3fMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3fMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos3fMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3fvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3fv", symbol_prefix);
+        procp = (void **) &disp->WindowPos3fvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3fvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3fvARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos3fvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3fvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3fvMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos3fvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3iMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3i", symbol_prefix);
+        procp = (void **) &disp->WindowPos3iMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3iMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3iARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos3iMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3iMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3iMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos3iMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3ivMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3iv", symbol_prefix);
+        procp = (void **) &disp->WindowPos3ivMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3ivMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3ivARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos3ivMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3ivMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3ivMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos3ivMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3sMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3s", symbol_prefix);
+        procp = (void **) &disp->WindowPos3sMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3sMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3sARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos3sMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3sMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3sMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos3sMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3svMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3sv", symbol_prefix);
+        procp = (void **) &disp->WindowPos3svMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3svMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3svARB", symbol_prefix);
+        procp = (void **) &disp->WindowPos3svMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos3svMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos3svMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos3svMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos4dMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos4dMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos4dMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos4dvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos4dvMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos4dvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos4fMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos4fMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos4fMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos4fvMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos4fvMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos4fvMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos4iMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos4iMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos4iMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos4ivMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos4ivMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos4ivMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos4sMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos4sMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos4sMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->WindowPos4svMESA) {
+        snprintf(symboln, sizeof(symboln), "%sWindowPos4svMESA", symbol_prefix);
+        procp = (void **) &disp->WindowPos4svMESA;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiModeDrawArraysIBM) {
+        snprintf(symboln, sizeof(symboln), "%sMultiModeDrawArraysIBM", symbol_prefix);
+        procp = (void **) &disp->MultiModeDrawArraysIBM;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->MultiModeDrawElementsIBM) {
+        snprintf(symboln, sizeof(symboln), "%sMultiModeDrawElementsIBM", symbol_prefix);
+        procp = (void **) &disp->MultiModeDrawElementsIBM;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteFencesNV) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteFencesNV", symbol_prefix);
+        procp = (void **) &disp->DeleteFencesNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FinishFenceNV) {
+        snprintf(symboln, sizeof(symboln), "%sFinishFenceNV", symbol_prefix);
+        procp = (void **) &disp->FinishFenceNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenFencesNV) {
+        snprintf(symboln, sizeof(symboln), "%sGenFencesNV", symbol_prefix);
+        procp = (void **) &disp->GenFencesNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetFenceivNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetFenceivNV", symbol_prefix);
+        procp = (void **) &disp->GetFenceivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsFenceNV) {
+        snprintf(symboln, sizeof(symboln), "%sIsFenceNV", symbol_prefix);
+        procp = (void **) &disp->IsFenceNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SetFenceNV) {
+        snprintf(symboln, sizeof(symboln), "%sSetFenceNV", symbol_prefix);
+        procp = (void **) &disp->SetFenceNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TestFenceNV) {
+        snprintf(symboln, sizeof(symboln), "%sTestFenceNV", symbol_prefix);
+        procp = (void **) &disp->TestFenceNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->AreProgramsResidentNV) {
+        snprintf(symboln, sizeof(symboln), "%sAreProgramsResidentNV", symbol_prefix);
+        procp = (void **) &disp->AreProgramsResidentNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindProgramNV) {
+        snprintf(symboln, sizeof(symboln), "%sBindProgramARB", symbol_prefix);
+        procp = (void **) &disp->BindProgramNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindProgramNV) {
+        snprintf(symboln, sizeof(symboln), "%sBindProgramNV", symbol_prefix);
+        procp = (void **) &disp->BindProgramNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteProgramsNV) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteProgramsARB", symbol_prefix);
+        procp = (void **) &disp->DeleteProgramsNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteProgramsNV) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteProgramsNV", symbol_prefix);
+        procp = (void **) &disp->DeleteProgramsNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ExecuteProgramNV) {
+        snprintf(symboln, sizeof(symboln), "%sExecuteProgramNV", symbol_prefix);
+        procp = (void **) &disp->ExecuteProgramNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenProgramsNV) {
+        snprintf(symboln, sizeof(symboln), "%sGenProgramsARB", symbol_prefix);
+        procp = (void **) &disp->GenProgramsNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenProgramsNV) {
+        snprintf(symboln, sizeof(symboln), "%sGenProgramsNV", symbol_prefix);
+        procp = (void **) &disp->GenProgramsNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramParameterdvNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramParameterdvNV", symbol_prefix);
+        procp = (void **) &disp->GetProgramParameterdvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramParameterfvNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramParameterfvNV", symbol_prefix);
+        procp = (void **) &disp->GetProgramParameterfvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramStringNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramStringNV", symbol_prefix);
+        procp = (void **) &disp->GetProgramStringNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramivNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramivNV", symbol_prefix);
+        procp = (void **) &disp->GetProgramivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetTrackMatrixivNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetTrackMatrixivNV", symbol_prefix);
+        procp = (void **) &disp->GetTrackMatrixivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribPointervNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribPointerv", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribPointervNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribPointervNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribPointervARB", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribPointervNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribPointervNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribPointervNV", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribPointervNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribdvNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribdvNV", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribdvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribfvNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribfvNV", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribfvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetVertexAttribivNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetVertexAttribivNV", symbol_prefix);
+        procp = (void **) &disp->GetVertexAttribivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsProgramNV) {
+        snprintf(symboln, sizeof(symboln), "%sIsProgramARB", symbol_prefix);
+        procp = (void **) &disp->IsProgramNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsProgramNV) {
+        snprintf(symboln, sizeof(symboln), "%sIsProgramNV", symbol_prefix);
+        procp = (void **) &disp->IsProgramNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->LoadProgramNV) {
+        snprintf(symboln, sizeof(symboln), "%sLoadProgramNV", symbol_prefix);
+        procp = (void **) &disp->LoadProgramNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramParameters4dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sProgramParameters4dvNV", symbol_prefix);
+        procp = (void **) &disp->ProgramParameters4dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramParameters4fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sProgramParameters4fvNV", symbol_prefix);
+        procp = (void **) &disp->ProgramParameters4fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RequestResidentProgramsNV) {
+        snprintf(symboln, sizeof(symboln), "%sRequestResidentProgramsNV", symbol_prefix);
+        procp = (void **) &disp->RequestResidentProgramsNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->TrackMatrixNV) {
+        snprintf(symboln, sizeof(symboln), "%sTrackMatrixNV", symbol_prefix);
+        procp = (void **) &disp->TrackMatrixNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1dNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1dNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1dvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1fNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1fNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1fvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1sNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1sNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1sNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib1svNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib1svNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib1svNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2dNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2dNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2dvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2fNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2fNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2fvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2sNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2sNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2sNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib2svNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib2svNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib2svNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3dNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3dNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3dvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3fNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3fNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3fvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3sNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3sNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3sNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib3svNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib3svNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib3svNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4dNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4dNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4dvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4fNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4fNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4fvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4sNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4sNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4sNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4svNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4svNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4svNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4ubNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ubNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4ubNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttrib4ubvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttrib4ubvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttrib4ubvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribPointerNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribPointerNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribPointerNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs1dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs1dvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs1dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs1fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs1fvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs1fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs1svNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs1svNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs1svNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs2dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs2dvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs2dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs2fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs2fvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs2fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs2svNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs2svNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs2svNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs3dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs3dvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs3dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs3fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs3fvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs3fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs3svNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs3svNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs3svNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs4dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs4dvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs4dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs4fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs4fvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs4fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs4svNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs4svNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs4svNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->VertexAttribs4ubvNV) {
+        snprintf(symboln, sizeof(symboln), "%sVertexAttribs4ubvNV", symbol_prefix);
+        procp = (void **) &disp->VertexAttribs4ubvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->AlphaFragmentOp1ATI) {
+        snprintf(symboln, sizeof(symboln), "%sAlphaFragmentOp1ATI", symbol_prefix);
+        procp = (void **) &disp->AlphaFragmentOp1ATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->AlphaFragmentOp2ATI) {
+        snprintf(symboln, sizeof(symboln), "%sAlphaFragmentOp2ATI", symbol_prefix);
+        procp = (void **) &disp->AlphaFragmentOp2ATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->AlphaFragmentOp3ATI) {
+        snprintf(symboln, sizeof(symboln), "%sAlphaFragmentOp3ATI", symbol_prefix);
+        procp = (void **) &disp->AlphaFragmentOp3ATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BeginFragmentShaderATI) {
+        snprintf(symboln, sizeof(symboln), "%sBeginFragmentShaderATI", symbol_prefix);
+        procp = (void **) &disp->BeginFragmentShaderATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindFragmentShaderATI) {
+        snprintf(symboln, sizeof(symboln), "%sBindFragmentShaderATI", symbol_prefix);
+        procp = (void **) &disp->BindFragmentShaderATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorFragmentOp1ATI) {
+        snprintf(symboln, sizeof(symboln), "%sColorFragmentOp1ATI", symbol_prefix);
+        procp = (void **) &disp->ColorFragmentOp1ATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorFragmentOp2ATI) {
+        snprintf(symboln, sizeof(symboln), "%sColorFragmentOp2ATI", symbol_prefix);
+        procp = (void **) &disp->ColorFragmentOp2ATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ColorFragmentOp3ATI) {
+        snprintf(symboln, sizeof(symboln), "%sColorFragmentOp3ATI", symbol_prefix);
+        procp = (void **) &disp->ColorFragmentOp3ATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteFragmentShaderATI) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteFragmentShaderATI", symbol_prefix);
+        procp = (void **) &disp->DeleteFragmentShaderATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->EndFragmentShaderATI) {
+        snprintf(symboln, sizeof(symboln), "%sEndFragmentShaderATI", symbol_prefix);
+        procp = (void **) &disp->EndFragmentShaderATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenFragmentShadersATI) {
+        snprintf(symboln, sizeof(symboln), "%sGenFragmentShadersATI", symbol_prefix);
+        procp = (void **) &disp->GenFragmentShadersATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PassTexCoordATI) {
+        snprintf(symboln, sizeof(symboln), "%sPassTexCoordATI", symbol_prefix);
+        procp = (void **) &disp->PassTexCoordATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SampleMapATI) {
+        snprintf(symboln, sizeof(symboln), "%sSampleMapATI", symbol_prefix);
+        procp = (void **) &disp->SampleMapATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->SetFragmentShaderConstantATI) {
+        snprintf(symboln, sizeof(symboln), "%sSetFragmentShaderConstantATI", symbol_prefix);
+        procp = (void **) &disp->SetFragmentShaderConstantATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameteriNV) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameteri", symbol_prefix);
+        procp = (void **) &disp->PointParameteriNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameteriNV) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameteriNV", symbol_prefix);
+        procp = (void **) &disp->PointParameteriNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterivNV) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameteriv", symbol_prefix);
+        procp = (void **) &disp->PointParameterivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->PointParameterivNV) {
+        snprintf(symboln, sizeof(symboln), "%sPointParameterivNV", symbol_prefix);
+        procp = (void **) &disp->PointParameterivNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ActiveStencilFaceEXT) {
+        snprintf(symboln, sizeof(symboln), "%sActiveStencilFaceEXT", symbol_prefix);
+        procp = (void **) &disp->ActiveStencilFaceEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindVertexArrayAPPLE) {
+        snprintf(symboln, sizeof(symboln), "%sBindVertexArrayAPPLE", symbol_prefix);
+        procp = (void **) &disp->BindVertexArrayAPPLE;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteVertexArraysAPPLE) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteVertexArrays", symbol_prefix);
+        procp = (void **) &disp->DeleteVertexArraysAPPLE;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteVertexArraysAPPLE) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteVertexArraysAPPLE", symbol_prefix);
+        procp = (void **) &disp->DeleteVertexArraysAPPLE;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenVertexArraysAPPLE) {
+        snprintf(symboln, sizeof(symboln), "%sGenVertexArraysAPPLE", symbol_prefix);
+        procp = (void **) &disp->GenVertexArraysAPPLE;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsVertexArrayAPPLE) {
+        snprintf(symboln, sizeof(symboln), "%sIsVertexArray", symbol_prefix);
+        procp = (void **) &disp->IsVertexArrayAPPLE;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsVertexArrayAPPLE) {
+        snprintf(symboln, sizeof(symboln), "%sIsVertexArrayAPPLE", symbol_prefix);
+        procp = (void **) &disp->IsVertexArrayAPPLE;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramNamedParameterdvNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramNamedParameterdvNV", symbol_prefix);
+        procp = (void **) &disp->GetProgramNamedParameterdvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetProgramNamedParameterfvNV) {
+        snprintf(symboln, sizeof(symboln), "%sGetProgramNamedParameterfvNV", symbol_prefix);
+        procp = (void **) &disp->GetProgramNamedParameterfvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramNamedParameter4dNV) {
+        snprintf(symboln, sizeof(symboln), "%sProgramNamedParameter4dNV", symbol_prefix);
+        procp = (void **) &disp->ProgramNamedParameter4dNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramNamedParameter4dvNV) {
+        snprintf(symboln, sizeof(symboln), "%sProgramNamedParameter4dvNV", symbol_prefix);
+        procp = (void **) &disp->ProgramNamedParameter4dvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramNamedParameter4fNV) {
+        snprintf(symboln, sizeof(symboln), "%sProgramNamedParameter4fNV", symbol_prefix);
+        procp = (void **) &disp->ProgramNamedParameter4fNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramNamedParameter4fvNV) {
+        snprintf(symboln, sizeof(symboln), "%sProgramNamedParameter4fvNV", symbol_prefix);
+        procp = (void **) &disp->ProgramNamedParameter4fvNV;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DepthBoundsEXT) {
+        snprintf(symboln, sizeof(symboln), "%sDepthBoundsEXT", symbol_prefix);
+        procp = (void **) &disp->DepthBoundsEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendEquationSeparateEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBlendEquationSeparate", symbol_prefix);
+        procp = (void **) &disp->BlendEquationSeparateEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendEquationSeparateEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBlendEquationSeparateEXT", symbol_prefix);
+        procp = (void **) &disp->BlendEquationSeparateEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlendEquationSeparateEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBlendEquationSeparateATI", symbol_prefix);
+        procp = (void **) &disp->BlendEquationSeparateEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindFramebufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBindFramebuffer", symbol_prefix);
+        procp = (void **) &disp->BindFramebufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindFramebufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBindFramebufferEXT", symbol_prefix);
+        procp = (void **) &disp->BindFramebufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindRenderbufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBindRenderbuffer", symbol_prefix);
+        procp = (void **) &disp->BindRenderbufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BindRenderbufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBindRenderbufferEXT", symbol_prefix);
+        procp = (void **) &disp->BindRenderbufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CheckFramebufferStatusEXT) {
+        snprintf(symboln, sizeof(symboln), "%sCheckFramebufferStatus", symbol_prefix);
+        procp = (void **) &disp->CheckFramebufferStatusEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CheckFramebufferStatusEXT) {
+        snprintf(symboln, sizeof(symboln), "%sCheckFramebufferStatusEXT", symbol_prefix);
+        procp = (void **) &disp->CheckFramebufferStatusEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteFramebuffersEXT) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteFramebuffers", symbol_prefix);
+        procp = (void **) &disp->DeleteFramebuffersEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteFramebuffersEXT) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteFramebuffersEXT", symbol_prefix);
+        procp = (void **) &disp->DeleteFramebuffersEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteRenderbuffersEXT) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteRenderbuffers", symbol_prefix);
+        procp = (void **) &disp->DeleteRenderbuffersEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->DeleteRenderbuffersEXT) {
+        snprintf(symboln, sizeof(symboln), "%sDeleteRenderbuffersEXT", symbol_prefix);
+        procp = (void **) &disp->DeleteRenderbuffersEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferRenderbufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferRenderbuffer", symbol_prefix);
+        procp = (void **) &disp->FramebufferRenderbufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferRenderbufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferRenderbufferEXT", symbol_prefix);
+        procp = (void **) &disp->FramebufferRenderbufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferTexture1DEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferTexture1D", symbol_prefix);
+        procp = (void **) &disp->FramebufferTexture1DEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferTexture1DEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferTexture1DEXT", symbol_prefix);
+        procp = (void **) &disp->FramebufferTexture1DEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferTexture2DEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferTexture2D", symbol_prefix);
+        procp = (void **) &disp->FramebufferTexture2DEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferTexture2DEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferTexture2DEXT", symbol_prefix);
+        procp = (void **) &disp->FramebufferTexture2DEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferTexture3DEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferTexture3D", symbol_prefix);
+        procp = (void **) &disp->FramebufferTexture3DEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferTexture3DEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferTexture3DEXT", symbol_prefix);
+        procp = (void **) &disp->FramebufferTexture3DEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenFramebuffersEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGenFramebuffers", symbol_prefix);
+        procp = (void **) &disp->GenFramebuffersEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenFramebuffersEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGenFramebuffersEXT", symbol_prefix);
+        procp = (void **) &disp->GenFramebuffersEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenRenderbuffersEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGenRenderbuffers", symbol_prefix);
+        procp = (void **) &disp->GenRenderbuffersEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenRenderbuffersEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGenRenderbuffersEXT", symbol_prefix);
+        procp = (void **) &disp->GenRenderbuffersEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenerateMipmapEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGenerateMipmap", symbol_prefix);
+        procp = (void **) &disp->GenerateMipmapEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GenerateMipmapEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGenerateMipmapEXT", symbol_prefix);
+        procp = (void **) &disp->GenerateMipmapEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetFramebufferAttachmentParameterivEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGetFramebufferAttachmentParameteriv", symbol_prefix);
+        procp = (void **) &disp->GetFramebufferAttachmentParameterivEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetFramebufferAttachmentParameterivEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGetFramebufferAttachmentParameterivEXT", symbol_prefix);
+        procp = (void **) &disp->GetFramebufferAttachmentParameterivEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetRenderbufferParameterivEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGetRenderbufferParameteriv", symbol_prefix);
+        procp = (void **) &disp->GetRenderbufferParameterivEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetRenderbufferParameterivEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGetRenderbufferParameterivEXT", symbol_prefix);
+        procp = (void **) &disp->GetRenderbufferParameterivEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsFramebufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sIsFramebuffer", symbol_prefix);
+        procp = (void **) &disp->IsFramebufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsFramebufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sIsFramebufferEXT", symbol_prefix);
+        procp = (void **) &disp->IsFramebufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsRenderbufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sIsRenderbuffer", symbol_prefix);
+        procp = (void **) &disp->IsRenderbufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->IsRenderbufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sIsRenderbufferEXT", symbol_prefix);
+        procp = (void **) &disp->IsRenderbufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RenderbufferStorageEXT) {
+        snprintf(symboln, sizeof(symboln), "%sRenderbufferStorage", symbol_prefix);
+        procp = (void **) &disp->RenderbufferStorageEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->RenderbufferStorageEXT) {
+        snprintf(symboln, sizeof(symboln), "%sRenderbufferStorageEXT", symbol_prefix);
+        procp = (void **) &disp->RenderbufferStorageEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlitFramebufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBlitFramebuffer", symbol_prefix);
+        procp = (void **) &disp->BlitFramebufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->BlitFramebufferEXT) {
+        snprintf(symboln, sizeof(symboln), "%sBlitFramebufferEXT", symbol_prefix);
+        procp = (void **) &disp->BlitFramebufferEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferTextureLayerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferTextureLayer", symbol_prefix);
+        procp = (void **) &disp->FramebufferTextureLayerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->FramebufferTextureLayerEXT) {
+        snprintf(symboln, sizeof(symboln), "%sFramebufferTextureLayerEXT", symbol_prefix);
+        procp = (void **) &disp->FramebufferTextureLayerEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->StencilFuncSeparateATI) {
+        snprintf(symboln, sizeof(symboln), "%sStencilFuncSeparateATI", symbol_prefix);
+        procp = (void **) &disp->StencilFuncSeparateATI;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramEnvParameters4fvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sProgramEnvParameters4fvEXT", symbol_prefix);
+        procp = (void **) &disp->ProgramEnvParameters4fvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->ProgramLocalParameters4fvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sProgramLocalParameters4fvEXT", symbol_prefix);
+        procp = (void **) &disp->ProgramLocalParameters4fvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetQueryObjecti64vEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGetQueryObjecti64vEXT", symbol_prefix);
+        procp = (void **) &disp->GetQueryObjecti64vEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->GetQueryObjectui64vEXT) {
+        snprintf(symboln, sizeof(symboln), "%sGetQueryObjectui64vEXT", symbol_prefix);
+        procp = (void **) &disp->GetQueryObjectui64vEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CullParameterdvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sCullParameterdvEXT", symbol_prefix);
+        procp = (void **) &disp->CullParameterdvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    if(!disp->CullParameterfvEXT) {
+        snprintf(symboln, sizeof(symboln), "%sCullParameterfvEXT", symbol_prefix);
+        procp = (void **) &disp->CullParameterfvEXT;
+        *procp = dlsym(handle, symboln);
+    }
+
+
+    __glapi_gentable_set_remaining_noop(disp);
+
+    return disp;
+}
+
commit b9e5f94e3ca5f93f228393fd599ef35f8fc71fe1
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Sun Jun 5 21:59:13 2011 -0400

    XQuartz: Add missing include for <pthread.h>
    
    BuildFix for Leopard and earlier.
    
    https://trac.macports.org/ticket/29717
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
    (cherry picked from commit c3df4df40761760b281a21f63336ca955670f7bc)

diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m
index 988a86b..a5159b6 100644
--- a/hw/xquartz/X11Application.m
+++ b/hw/xquartz/X11Application.m
@@ -50,6 +50,8 @@
 #include <unistd.h>
 #include <AvailabilityMacros.h>
 
+#include <pthread.h>
+
 #include <Xplugin.h>
 
 // pbproxy/pbproxy.h
commit 9551f5041915fa00ca243a279efb55de2ff11a00
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Tue May 31 14:48:33 2011 +1000

    dix: fix an error message.
    
    event type, not device type.
    
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
    (cherry picked from commit f94898928dfaf8df648bc3eea7d304826b7ac1b8)
    
    Conflicts:
    
    	dix/events.c

diff --git a/dix/events.c b/dix/events.c
index f0ea576..eefcdef 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -410,7 +410,7 @@ GetEventFilter(DeviceIntPtr dev, xEvent *event)
         return filters[dev ? dev->id : 0][event->u.u.type];
     else if (XI2_EVENT(event))
         return (1 << (((xXIDeviceEvent*)event)->evtype % 8));
-    ErrorF("[dix] Unknown device type %d. No filter\n", event->u.u.type);
+    ErrorF("[dix] Unknown event type %d. No filter\n", event->u.u.type);
     return 0;
 }
 
commit 75f75d12cf69ba9b7f14ddf04338ad2df7315550
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Thu May 19 14:50:17 2011 +1000

    test: don't test for double alignment on i386. (#36986)
    
    i386 is one of the few architectures that doesn't need double alignment.
    
    X.Org Bug 36986 <http://bugs.freedesktop.org/show_bug.cgi?id=36986>
    
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
    (cherry picked from commit 8ef0974874f322e3ce2f3e6be4ab3c7e73a7b380)
    
    Conflicts:
    
    	test/input.c

diff --git a/test/input.c b/test/input.c
index 4d840b9..4c80fcc 100644
--- a/test/input.c
+++ b/test/input.c
@@ -1213,8 +1213,11 @@ static void dix_valuator_alloc(void)
 
         g_assert(v);
         g_assert(v->numAxes == num_axes);
+#ifndef __i386__
+        /* must be double-aligned on 64 bit */
         g_assert(((void*)v->axisVal - (void*)v) % sizeof(double) == 0);
         g_assert(((void*)v->axes - (void*)v) % sizeof(double) == 0);
+#endif
         num_axes ++;
     }
 
commit 2647867c7c8e12fac29b4bd9805efb40d6d87c70
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun May 22 13:50:14 2011 -0700

    fbbltone.c: Mark bitmasks as unsigned ints
    
    Clears many Sun compiler warnings:
    "fbbltone.c", line 491: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 491: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 491: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 491: warning: initializer will be sign-extended: -16777216
    "fbbltone.c", line 491: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 491: warning: initializer will be sign-extended: -1
    "fbbltone.c", line 495: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 495: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 495: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 495: warning: initializer will be sign-extended: -256
    "fbbltone.c", line 495: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 495: warning: initializer will be sign-extended: -1
    "fbbltone.c", line 499: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 499: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 499: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 499: warning: initializer will be sign-extended: -65536
    "fbbltone.c", line 499: warning: integer overflow detected: op "<<"
    "fbbltone.c", line 499: warning: initializer will be sign-extended: -1
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Reviewed-by: Jamey Sharp <jamey at minilop.net>
    Signed-off-by: Keith Packard <keithp at keithp.com>
    (cherry picked from commit 1b2d17748f0154da142e9b421d4f6a46e4e5a18c)

diff --git a/fb/fbbltone.c b/fb/fbbltone.c
index 5d5d2e6..97546b9 100644
--- a/fb/fbbltone.c
+++ b/fb/fbbltone.c
@@ -438,8 +438,8 @@ fbBltOne (FbStip    *src,
 
 #define Mask24(x,r) (Mask24Pos(x,r) < FB_UNIT ? \
 		     (Mask24Pos(x,r) < 0 ? \
-		      0xffffff >> Mask24Neg (x,r) : \
-		      0xffffff << Mask24Check(x,r)) : 0)
+		      0xffffffU >> Mask24Neg (x,r) : \
+		      0xffffffU << Mask24Check(x,r)) : 0)
 
 #define SelMask24(b,n,r)	((((b) >> n) & 1) * Mask24(n,r))
 
commit caaf263b93b17367a96483dec73573415ead9b14
Author: Nicolas Kaiser <nikai at nikai.net>
Date:   Mon Jun 6 16:53:41 2011 +0200

    randr: void function cannot return value
    
    Providing an argument to return in a function with void return type
    is not allowed by the C standard, and makes the Sun compilers unhappy.
    
    Signed-off-by: Nicolas Kaiser <nikai at nikai.net>
    Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Signed-off-by: Keith Packard <keithp at keithp.com>
    (cherry picked from commit 21eec367d0d9c142458f973062e17add4f693033)

diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index 98206a2..31c9510 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -538,7 +538,7 @@ RRModeGetScanoutSize (RRModePtr mode, PictTransformPtr transform,
 void
 RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height)
 {
-    return RRModeGetScanoutSize (crtc->mode, &crtc->transform, width, height);
+    RRModeGetScanoutSize (crtc->mode, &crtc->transform, width, height);
 }
 
 /*
commit fe4af41314a6537b3fcc66955ccb6895639738b1
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Wed Jun 1 10:24:43 2011 +1000

    test: fix memset size for WindowRec (#37801)
    
    X.Org Bug 37801 <http://bugs.freedesktop.org/show_bug.cgi?id=37801>
    
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
    Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>
    Reviewed-by: Daniel Stone <daniel at fooishbar.org>
    Reviewed-by: Cyril Brulebois <kibi at debian.org>
    Signed-off-by: Keith Packard <keithp at keithp.com>
    (cherry picked from commit d9bda34d0df576d155e1d682d5e2a382b8e1ffda)

diff --git a/test/xi2/protocol-common.c b/test/xi2/protocol-common.c
index 10d82a5..cd9e81a 100644
--- a/test/xi2/protocol-common.c
+++ b/test/xi2/protocol-common.c
@@ -122,7 +122,7 @@ ClientRec init_client(int len, void *data)
 
 void init_window(WindowPtr window, WindowPtr parent, int id)
 {
-    memset(window, 0, sizeof(window));
+    memset(window, 0, sizeof(*window));
 
     window->drawable.id = id;
     if (parent)
commit a4725afa0e77e9fcf6570001dc0de23a7a9ee6cb
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Tue May 31 13:01:05 2011 -0700

    XQuartz: GLX: Create a new dispatch table rather than modifying the existing one
    
    Fixes regression introduced by b0c665ac0fe6840dda581e4d0d0b76c703d62a7b
    
    0   X11.bin                       	0x0000000100118293 __glXAquaScreenCreateContext + 684
    1   X11.bin                       	0x00000001001315b0 DoCreateContext + 163
    2   X11.bin                       	0x000000010013509f __glXDispatch + 211
    3   X11.bin                       	0x00000001000c7dad Dispatch + 785
    4   X11.bin                       	0x00000001000b97e5 dix_main + 1022
    5   X11.bin                       	0x00000001000122bc server_thread + 50
    6   libSystem.B.dylib             	0x00007fff836554f6 _pthread_start + 331
    7   libSystem.B.dylib             	0x00007fff836553a9 thread_start + 13
    
    http://lists.apple.com/archives/X11-users/2011/May/msg00045.html
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
    Reviewed-by: Adam Jackson <ajax at redhat.com>
    (cherry picked from commit 38df706c6b8a339c4267cae7be0881c4362f36da)

diff --git a/hw/xquartz/GL/indirect.c b/hw/xquartz/GL/indirect.c
index 1375bea..db4fe83 100644
--- a/hw/xquartz/GL/indirect.c
+++ b/hw/xquartz/GL/indirect.c
@@ -682,7 +682,15 @@ GLuint __glFloorLog2(GLuint val)
 }
 
 static void setup_dispatch_table(void) {
-    struct _glapi_table *disp=_glapi_get_dispatch();
+    static struct _glapi_table *disp = NULL;
+
+    if(disp)  {
+        _glapi_set_dispatch(disp);
+        return;
+    }
+
+    disp=calloc(1,sizeof(struct _glapi_table));
+    assert(disp);
 
     /* to update:
      * for f in $(grep 'define SET_' ../../../glx/dispatch.h  | cut -f2 -d' ' | cut -f1 -d\( | sort -u); do grep -q $f indirect.c || echo $f ; done | grep -v by_offset | sed 's:SET_\(.*\)$:SET_\1(disp, gl\1)\;:' | pbcopy
@@ -1626,4 +1634,6 @@ static void setup_dispatch_table(void) {
     SET_PixelTexGenParameterivSGIS(disp, glPixelTexGenParameterivSGIS);
     SET_PixelTexGenSGIX(disp, glPixelTexGenSGIX);
 #endif
+
+    _glapi_set_dispatch(disp);
 }
commit 6a16c4c268962fd09a52e4e78116aaa3bb1c47d5
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Wed Jun 1 21:42:07 2011 -0700

    "privates.h", line 198: warning: void function cannot return value
    
    Providing an argument to return in a function with void return type
    is not allowed by the C standard, and makes the Sun compilers unhappy.
    (They actually flag it as an error, unless using a new enough version
     to be able to downgrade it to a warning with "-features=extensions".)
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>
    Reviewed-by: Daniel Stone <daniel at fooishbar.org>
    Reviewed-by: Cyril Brulebois <kibi at debian.org>
    (cherry picked from commit bc04065b5ce277f3ac3491ff221a60ef3c7605cf)

diff --git a/include/privates.h b/include/privates.h
index 7ef2cb7..2b0040c 100644
--- a/include/privates.h
+++ b/include/privates.h
@@ -195,7 +195,7 @@ dixGetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenP
 static inline void
 dixSetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenPtr pScreen, pointer val)
 {
-    return dixSetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen), val);
+    dixSetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen), val);
 }
 
 static inline pointer


More information about the Xquartz-changes mailing list