summaryrefslogtreecommitdiff
path: root/src/glut/glx/win32_glx.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-02-10 11:36:48 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-02-10 11:51:46 +0000
commit5b0807b72f16a4835e4b28aa8a66e9bcd867d383 (patch)
tree32e803e6bb4a7390b005d6d5a3f2d8ef61af25c5 /src/glut/glx/win32_glx.c
parentaeed92952efaac0b3519aeb141de18e17f0f454c (diff)
glut: Use the official WGL functions.
Especially using wglGetPixelFormat instead of GetPixelFormat causes problems with opengl32.dll and drivers that not hack around this issue.
Diffstat (limited to 'src/glut/glx/win32_glx.c')
-rw-r--r--src/glut/glx/win32_glx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glut/glx/win32_glx.c b/src/glut/glx/win32_glx.c
index ecfff44b93..3522e606ec 100644
--- a/src/glut/glx/win32_glx.c
+++ b/src/glut/glx/win32_glx.c
@@ -22,7 +22,7 @@ glXCreateContext(Display * display, XVisualInfo * visinfo,
routine. */
HGLRC context;
- context = CreateContext(XHDC);
+ context = wglCreateContext(XHDC);
#if 0
/* XXX GLUT doesn't support it now, so don't worry about display list