Commit e110f2c6 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

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

parent 61a900fd
...@@ -176,7 +176,7 @@ static int WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc, WINED3DF ...@@ -176,7 +176,7 @@ static int WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc, WINED3DF
getDepthStencilBits(DepthStencilFormat, &depthBits, &stencilBits); 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++) { for(i=0; i<nCfgs; i++) {
BOOL exactDepthMatch = TRUE; BOOL exactDepthMatch = TRUE;
cfgs = &This->adapter->cfgs[i]; cfgs = &This->adapter->cfgs[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment