Module: Mesa
Branch: master
Commit: 00c02626d8087cab0cf5581911c4e68f7b32eb6e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=00c02626d8087cab0cf5581911c4e68f7b32eb6e

Author: Karl Schultz <[email protected]>
Date:   Tue Jan 13 09:01:34 2009 -0700

windows: try to create a context in wglCreateLayerContext()

---

 src/mesa/drivers/windows/gdi/wgl.c |    3 ++-
 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 9f0bb91..8d80870 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);
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to