summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glut_dstr.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-11-27 02:55:58 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-11-27 02:55:58 +0000
commit253270dfcce980c88be6b21204a0c13a0becb2de (patch)
treeda79a43eec35d7f2554e8168afbda04b1834d5ab /src/glut/glx/glut_dstr.c
parent2f3d6203989e3a9843a548796b2c2062f470517e (diff)
downloadexternal_mesa3d-253270dfcce980c88be6b21204a0c13a0becb2de.zip
external_mesa3d-253270dfcce980c88be6b21204a0c13a0becb2de.tar.gz
external_mesa3d-253270dfcce980c88be6b21204a0c13a0becb2de.tar.bz2
use glXGetProcAddressARB to avoid extension linkage problems
Diffstat (limited to 'src/glut/glx/glut_dstr.c')
-rw-r--r--src/glut/glx/glut_dstr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/glut/glx/glut_dstr.c b/src/glut/glx/glut_dstr.c
index 29a699f..3f7dba8 100644
--- a/src/glut/glx/glut_dstr.c
+++ b/src/glut/glx/glut_dstr.c
@@ -439,15 +439,15 @@ loadVisuals(int *nitems_return)
GLXFBConfigSGIX fbc;
int fbconfigID, drawType, renderType;
- fbc = glXGetFBConfigFromVisualSGIX(__glutDisplay, vlist[i]);
+ fbc = __glut_glXGetFBConfigFromVisualSGIX(__glutDisplay, vlist[i]);
if (fbc) {
- rc = glXGetFBConfigAttribSGIX(__glutDisplay, fbc,
+ rc = __glut_glXGetFBConfigAttribSGIX(__glutDisplay, fbc,
GLX_FBCONFIG_ID_SGIX, &fbconfigID);
if ((rc == 0) && (fbconfigID != None)) {
- rc = glXGetFBConfigAttribSGIX(__glutDisplay, fbc,
+ rc = __glut_glXGetFBConfigAttribSGIX(__glutDisplay, fbc,
GLX_DRAWABLE_TYPE_SGIX, &drawType);
if ((rc == 0) && (drawType & GLX_WINDOW_BIT_SGIX)) {
- rc = glXGetFBConfigAttribSGIX(__glutDisplay, fbc,
+ rc = __glut_glXGetFBConfigAttribSGIX(__glutDisplay, fbc,
GLX_RENDER_TYPE_SGIX, &renderType);
if ((rc == 0) && (renderType & GLX_RGBA_BIT_SGIX)) {
mode->fbc = fbc;
@@ -459,7 +459,7 @@ loadVisuals(int *nitems_return)
/* Start with "j = 1" to skip the GLX_RGBA attribute. */
for (j = 1; j < NUM_GLXCAPS; j++) {
- rc = glXGetFBConfigAttribSGIX(__glutDisplay,
+ rc = __glut_glXGetFBConfigAttribSGIX(__glutDisplay,
fbc, glxcap[j], &mode->cap[j]);
if (rc != 0) {
mode->valid = 0;
@@ -509,7 +509,7 @@ loadVisuals(int *nitems_return)
#define GLX_VISUAL_CAVEAT_EXT 0x20
#endif
- rc = glXGetFBConfigAttribSGIX(__glutDisplay,
+ rc = __glut_glXGetFBConfigAttribSGIX(__glutDisplay,
fbc, GLX_VISUAL_CAVEAT_EXT, &rating);
if (rc != 0) {
mode->cap[SLOW] = 0;
@@ -558,7 +558,7 @@ loadVisuals(int *nitems_return)
#define GLX_TRANSPARENT_TYPE_EXT 0x23
#endif
- rc = glXGetFBConfigAttribSGIX(__glutDisplay,
+ rc = __glut_glXGetFBConfigAttribSGIX(__glutDisplay,
fbc, GLX_TRANSPARENT_TYPE_EXT, &transparent);
if (rc != 0) {
mode->cap[TRANSPARENT] = 0;
@@ -573,7 +573,7 @@ loadVisuals(int *nitems_return)
#endif
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIS_multisample)
if (multisample) {
- rc = glXGetFBConfigAttribSGIX(__glutDisplay,
+ rc = __glut_glXGetFBConfigAttribSGIX(__glutDisplay,
fbc, GLX_SAMPLES_SGIS, &mode->cap[SAMPLES]);
if (rc != 0) {
mode->cap[SAMPLES] = 0;