From 9ea367626bfb0de29c139876fba7a0f10a79af71 Mon Sep 17 00:00:00 2001 From: ikits Date: Fri, 26 Sep 2003 16:34:47 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@142 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/src/glewinfo_post.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/auto/src/glewinfo_post.c b/auto/src/glewinfo_post.c index 673a261..c48fa00 100644 --- a/auto/src/glewinfo_post.c +++ b/auto/src/glewinfo_post.c @@ -101,12 +101,6 @@ void glewDestroyContext () # ifdef __APPLE__ -Display* dpy = NULL; -XVisualInfo* vi = NULL; -GLXContext ctx = NULL; -Window wnd; -Colormap cmap; - GLboolean glewCreateContext () { return GL_TRUE; @@ -147,8 +141,7 @@ GLboolean glewCreateContext () cmap = XCreateColormap(dpy, RootWindow(dpy, vi->screen), vi->visual, AllocNone); swa.border_pixel = 0; swa.colormap = cmap; - wnd = XCreateWindow(dpy, RootWindow(dpy, vi->screen), 0, 0, 256, 256, 0, vi->depth, - InputOutput, vi->visual, CWBorderPixel | CWColormap, &swa); + wnd = XCreateWindow(dpy, RootWindow(dpy, vi->screen), 0, 0, 256, 256, 0, vi->depth, InputOutput, vi->visual, CWBorderPixel | CWColormap, &swa); /* make context current */ if (!glXMakeCurrent(dpy, wnd, ctx)) return GL_TRUE; return GL_FALSE;