wined3d: Override backbufferformat in window mode.
This commit is contained in:
parent
925e8964f1
commit
3084081519
|
@ -1336,6 +1336,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
|
||||||
pPresentationParameters->BackBufferHeight = Rect.bottom;
|
pPresentationParameters->BackBufferHeight = Rect.bottom;
|
||||||
TRACE("Updating height to %d\n", pPresentationParameters->BackBufferHeight);
|
TRACE("Updating height to %d\n", pPresentationParameters->BackBufferHeight);
|
||||||
}
|
}
|
||||||
|
if (pPresentationParameters->BackBufferFormat == WINED3DFMT_UNKNOWN) {
|
||||||
|
pPresentationParameters->BackBufferFormat = object->orig_fmt;
|
||||||
|
TRACE("Updating format to %s\n", debug_d3dformat(object->orig_fmt));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Put the correct figures in the presentation parameters */
|
/* Put the correct figures in the presentation parameters */
|
||||||
|
|
Loading…
Reference in New Issue