mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:40:48 +00:00
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;
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue