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 9f0bb9122a995a8da788a02368904ee7c537926d..8d8087067f5c52ba24716b290988af567836942a 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);
 }