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

This commit is contained in:
Stefan Dösinger 2008-08-16 15:49:11 +02:00 committed by Alexandre Julliard
parent 61a900fdfc
commit e110f2c680
1 changed files with 1 additions and 1 deletions

View File

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