summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKarl Schultz <karl.w.schultz@gmail.com>2009-01-13 09:01:34 -0700
committerBrian Paul <brianp@vmware.com>2009-01-13 09:02:04 -0700
commit00c02626d8087cab0cf5581911c4e68f7b32eb6e (patch)
tree42016026a2fd3eecbf1f1f4adf01ec0578f18eac /src/mesa
parenteeeed45c2cf6c876d79ae20a9a96172ece8642fe (diff)
windows: try to create a context in wglCreateLayerContext()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/windows/gdi/wgl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/windows/gdi/wgl.c b/src/mesa/drivers/windows/gdi/wgl.c
index 9f0bb9122a..8d8087067f 100644
--- a/src/mesa/drivers/windows/gdi/wgl.c
+++ b/src/mesa/drivers/windows/gdi/wgl.c
@@ -601,8 +601,9 @@ WINGDIAPI BOOL GLAPIENTRY wglCopyContext(HGLRC hglrcSrc,
WINGDIAPI HGLRC GLAPIENTRY wglCreateLayerContext(HDC hdc,
int iLayerPlane)
{
- (void) hdc; (void) iLayerPlane;
SetLastError(0);
+ if (iLayerPlane == 0)
+ return wglCreateContext( hdc );
return(NULL);
}