projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeeed45
)
windows: try to create a context in wglCreateLayerContext()
author
Karl Schultz
<karl.w.schultz@gmail.com>
Tue, 13 Jan 2009 16:01:34 +0000
(09:01 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 13 Jan 2009 16:02:04 +0000
(09:02 -0700)
src/mesa/drivers/windows/gdi/wgl.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/windows/gdi/wgl.c
b/src/mesa/drivers/windows/gdi/wgl.c
index 9f0bb9122a995a8da788a02368904ee7c537926d..8d8087067f5c52ba24716b290988af567836942a 100644
(file)
--- 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);
}