Commit 4d926e3e authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Silence a harmless error.

parent 7e2e30ba
......@@ -1425,10 +1425,11 @@ int X11DRV_GetPixelFormat(X11DRV_PDEVICE *physDev) {
int tmp;
TRACE("(%p)\n", physDev);
if (!physDev->current_pf) return 0; /* not set yet */
fmt = ConvertPixelFormatWGLtoGLX(gdi_display, physDev->current_pf, TRUE, &tmp);
if(!fmt)
{
/* This happens on HDCs on which SetPixelFormat wasn't called yet */
ERR("Unable to find a WineGLPixelFormat for iPixelFormat=%d\n", physDev->current_pf);
return 0;
}
......
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