Commit 61e42835 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

- set debug messages after a TRACE_ON test

- prevent crash when making the NULL context current
parent c6369b0b
......@@ -199,7 +199,9 @@ BOOL WINAPI wglMakeCurrent(HDC hdc,
physDev =(X11DRV_PDEVICE *)dc->physDev;
ENTER_GL();
ret = glXMakeCurrent(display, physDev->drawable, (GLXContext) hglrc);
ret = glXMakeCurrent(display,
(hglrc == NULL ? None : physDev->drawable),
(GLXContext) hglrc);
LEAVE_GL();
return ret;
......
......@@ -253,7 +253,9 @@ int X11DRV_DescribePixelFormat(DC *dc,
ppfd->iLayerType = PFD_MAIN_PLANE;
dump_PIXELFORMATDESCRIPTOR(ppfd);
if (TRACE_ON(opengl)) {
dump_PIXELFORMATDESCRIPTOR(ppfd);
}
return MAX_PIXELFORMATS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment