winex11: Silence a harmless error.
This commit is contained in:
parent
7e2e30bade
commit
4d926e3ebc
|
@ -1425,10 +1425,11 @@ int X11DRV_GetPixelFormat(X11DRV_PDEVICE *physDev) {
|
||||||
int tmp;
|
int tmp;
|
||||||
TRACE("(%p)\n", physDev);
|
TRACE("(%p)\n", physDev);
|
||||||
|
|
||||||
|
if (!physDev->current_pf) return 0; /* not set yet */
|
||||||
|
|
||||||
fmt = ConvertPixelFormatWGLtoGLX(gdi_display, physDev->current_pf, TRUE, &tmp);
|
fmt = ConvertPixelFormatWGLtoGLX(gdi_display, physDev->current_pf, TRUE, &tmp);
|
||||||
if(!fmt)
|
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);
|
ERR("Unable to find a WineGLPixelFormat for iPixelFormat=%d\n", physDev->current_pf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue