From e110f2c680d0739b0e48c5136d3cdba8eda59cd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20D=C3=B6singer?= Date: Sat, 16 Aug 2008 15:49:11 +0200 Subject: [PATCH] wined3d: Don't retry less strict formats if a match was found. --- dlls/wined3d/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index a190b2b9100..fb3fcc48c10 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -176,7 +176,7 @@ static int WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc, WINED3DF getDepthStencilBits(DepthStencilFormat, &depthBits, &stencilBits); } - for(matchtry = 0; matchtry < (sizeof(matches) / sizeof(matches[0])); matchtry++) { + for(matchtry = 0; matchtry < (sizeof(matches) / sizeof(matches[0])) && !iPixelFormat; matchtry++) { for(i=0; iadapter->cfgs[i]; -- 2.11.4.GIT