windows: try to create a context in wglCreateLayerContext()

This commit is contained in:
Karl Schultz
2009-01-13 09:01:34 -07:00
committed by Brian Paul
parent eeeed45c2c
commit 00c02626d8
+2 -1
View 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);
}