[PATCH] WineD3D: Don't retry less strict formats if a match was =

unknown (none) stefan at .
Sat Aug 16 15:49:11 CDT 2008


found=0A=
=0A=
Uh. That was a rather bad bug in the format match loop...=0A=
---=0A=
 dlls/wined3d/context.c |    2 +-=0A=
 1 files changed, 1 insertions(+), 1 deletions(-)=0A=
=0A=
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c=0A=
index 6a05434..0b553a0 100644=0A=
--- a/dlls/wined3d/context.c=0A=
+++ b/dlls/wined3d/context.c=0A=
@@ -176,7 +176,7 @@ static int =
WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc, WINED3DF=0A=
         getDepthStencilBits(DepthStencilFormat, &depthBits, =
&stencilBits);=0A=
     }=0A=
 =0A=
-    for(matchtry =3D 0; matchtry < (sizeof(matches) / =
sizeof(matches[0])); matchtry++) {=0A=
+    for(matchtry =3D 0; matchtry < (sizeof(matches) / =
sizeof(matches[0])) && !iPixelFormat; matchtry++) {=0A=
         for(i=3D0; i<nCfgs; i++) {=0A=
             BOOL exactDepthMatch =3D TRUE;=0A=
             cfgs =3D &This->adapter->cfgs[i];=0A=
-- =0A=
1.5.6.4=0A=
=0A=

------=_NextPart_000_0008_01C9046F.797B1440--




More information about the wine-patches mailing list