Stefan Dösinger : wined3d: Don' t retry less strict formats if a match was found.

Alexandre Julliard julliard at winehq.org
Mon Aug 25 06:21:34 CDT 2008


Module: wine
Branch: master
Commit: e110f2c680d0739b0e48c5136d3cdba8eda59cd1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e110f2c680d0739b0e48c5136d3cdba8eda59cd1

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sat Aug 16 15:49:11 2008 +0200

wined3d: Don't retry less strict formats if a match was found.

---

 dlls/wined3d/context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index a190b2b..fb3fcc4 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; i<nCfgs; i++) {
             BOOL exactDepthMatch = TRUE;
             cfgs = &This->adapter->cfgs[i];




More information about the wine-cvs mailing list