windows: try to create a context in wglCreateLayerContext()
authorKarl Schultz <karl.w.schultz@gmail.com>
Tue, 13 Jan 2009 16:01:34 +0000 (09:01 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 13 Jan 2009 16:02:04 +0000 (09:02 -0700)
src/mesa/drivers/windows/gdi/wgl.c

index 9f0bb91..8d80870 100644 (file)
@@ -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);
 }