winex11: Silence a harmless error.

This commit is contained in:
Alexandre Julliard 2008-05-12 19:58:35 +02:00
parent 7e2e30bade
commit 4d926e3ebc
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}