mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 15:25:07 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@141 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
6214dc8b12
commit
45c664f2e6
@ -101,8 +101,15 @@ void glewDestroyContext ()
|
|||||||
|
|
||||||
# ifdef __APPLE__
|
# ifdef __APPLE__
|
||||||
|
|
||||||
|
Display* dpy = NULL;
|
||||||
|
XVisualInfo* vi = NULL;
|
||||||
|
GLXContext ctx = NULL;
|
||||||
|
Window wnd;
|
||||||
|
Colormap cmap;
|
||||||
|
|
||||||
GLboolean glewCreateContext ()
|
GLboolean glewCreateContext ()
|
||||||
{
|
{
|
||||||
|
return GL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void glewDestroyContext ()
|
void glewDestroyContext ()
|
||||||
@ -136,9 +143,8 @@ GLboolean glewCreateContext ()
|
|||||||
ctx = glXCreateContext(dpy, vi, None, True);
|
ctx = glXCreateContext(dpy, vi, None, True);
|
||||||
if (NULL == ctx) return GL_TRUE;
|
if (NULL == ctx) return GL_TRUE;
|
||||||
/* create window */
|
/* 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);
|
cmap = XCreateColormap(dpy, RootWindow(dpy, vi->screen), vi->visual, AllocNone);
|
||||||
//swa.colormap = cmap;
|
|
||||||
swa.border_pixel = 0;
|
swa.border_pixel = 0;
|
||||||
swa.colormap = cmap;
|
swa.colormap = cmap;
|
||||||
wnd = XCreateWindow(dpy, RootWindow(dpy, vi->screen), 0, 0, 256, 256, 0, vi->depth,
|
wnd = XCreateWindow(dpy, RootWindow(dpy, vi->screen), 0, 0, 256, 256, 0, vi->depth,
|
||||||
|
Loading…
Reference in New Issue
Block a user