From 45c664f2e6a39951f97c455e3021e73e1d0d211b Mon Sep 17 00:00:00 2001 From: ikits Date: Fri, 26 Sep 2003 16:33:19 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@141 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/src/glewinfo_post.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/auto/src/glewinfo_post.c b/auto/src/glewinfo_post.c index 29aaf00..673a261 100644 --- a/auto/src/glewinfo_post.c +++ b/auto/src/glewinfo_post.c @@ -101,8 +101,15 @@ void glewDestroyContext () # ifdef __APPLE__ +Display* dpy = NULL; +XVisualInfo* vi = NULL; +GLXContext ctx = NULL; +Window wnd; +Colormap cmap; + GLboolean glewCreateContext () { + return GL_TRUE; } void glewDestroyContext () @@ -136,14 +143,13 @@ GLboolean glewCreateContext () ctx = glXCreateContext(dpy, vi, None, True); if (NULL == ctx) return GL_TRUE; /* create window */ - //wnd = XCreateSimpleWindow(dpy, RootWindow(dpy, vi->screen), 0, 0, 1, 1, 1, 0, 0); + /*wnd = XCreateSimpleWindow(dpy, RootWindow(dpy, vi->screen), 0, 0, 1, 1, 1, 0, 0);*/ cmap = XCreateColormap(dpy, RootWindow(dpy, vi->screen), vi->visual, AllocNone); - //swa.colormap = cmap; 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); - /* make context current */ + /* make context current */ if (!glXMakeCurrent(dpy, wnd, ctx)) return GL_TRUE; return GL_FALSE; }