diff options
Diffstat (limited to 'src/glut/glx/glut_win.c')
-rw-r--r-- | src/glut/glx/glut_win.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/glut/glx/glut_win.c b/src/glut/glx/glut_win.c index 4b044d084d4..9b9e6e30225 100644 --- a/src/glut/glx/glut_win.c +++ b/src/glut/glx/glut_win.c @@ -30,7 +30,7 @@ GLUTwindow *__glutMenuWindow = NULL; void (*__glutFreeOverlayFunc) (GLUToverlay *); XVisualInfo *(*__glutDetermineVisualFromString) (char *string, Bool * treatAsSingle, - Criterion * requiredCriteria, int nRequired, int requiredMask, void** fbc) = NULL; + Criterion * requiredCriteria, int nRequired, int requiredMask, void **fbc) = NULL; static Criterion requiredWindowCriteria[] = { @@ -471,11 +471,7 @@ __glutCreateWindow(GLUTwindow * parent, unsigned long attribMask; int winnum; int i; -#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_fbconfig) - GLXFBConfigSGIX fbc; -#else void *fbc; -#endif #if defined(_WIN32) WNDCLASS wc; @@ -501,7 +497,7 @@ __glutCreateWindow(GLUTwindow * parent, #if !defined(_WIN32) window->vis = __glutDetermineWindowVisual(&window->treatAsSingle, - &window->visAlloced, (void**) &fbc); + &window->visAlloced, &fbc); if (!window->vis) { __glutFatalError( "visual with necessary capabilities not found."); |