From 4d926e3ebc480a2edb7313af56e8395fe7f802a6 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 12 May 2008 19:58:35 +0200 Subject: [PATCH] winex11: Silence a harmless error. --- dlls/winex11.drv/opengl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index f92f94376fe..04c2f2af0b5 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -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; }