winex11: Update the pixel format through the DCE hook for window DCs to avoid races.

This commit is contained in:
Alexandre Julliard 2012-05-03 20:43:09 +02:00
parent 416240b781
commit 70f776d3b8
1 changed files with 2 additions and 2 deletions

View File

@ -1680,6 +1680,7 @@ static BOOL internal_SetPixelFormat(X11DRV_PDEVICE *physDev,
ERR("Couldn't set format of the window, returning failure\n");
return FALSE;
}
/* physDev->current_pf will be set by the DCE update */
}
else if(physDev->bitmap) {
if(!(value&GLX_PIXMAP_BIT)) {
@ -1692,13 +1693,12 @@ static BOOL internal_SetPixelFormat(X11DRV_PDEVICE *physDev,
WARN("Couldn't create glxpixmap for pixel format %d\n", iPixelFormat);
return FALSE;
}
physDev->current_pf = iPixelFormat;
}
else {
FIXME("called on a non-window, non-bitmap object?\n");
}
physDev->current_pf = iPixelFormat;
if (TRACE_ON(wgl)) {
int gl_test = 0;