From: Karl Schultz Date: Tue, 13 Jan 2009 16:01:34 +0000 (-0700) Subject: windows: try to create a context in wglCreateLayerContext() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00c02626d8087cab0cf5581911c4e68f7b32eb6e;p=mesa.git windows: try to create a context in wglCreateLayerContext() --- diff --git a/src/mesa/drivers/windows/gdi/wgl.c b/src/mesa/drivers/windows/gdi/wgl.c index 9f0bb9122a9..8d8087067f5 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); }