Skip to content
Snippets Groups Projects
Commit 93c49f17 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard
Browse files

wined3d: Update the swapchain's present parameters when changing the backbuffer.

This fixes a bug exposed by commit b5907e23.
parent 97700f05
No related branches found
No related tags found
No related merge requests found
......@@ -5621,6 +5621,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *ifa
if(Swapchain->backBuffer[0]) {
IWineD3DSurface_SetContainer(Swapchain->backBuffer[0], (IWineD3DBase *) Swapchain);
((IWineD3DSurfaceImpl *)Swapchain->backBuffer[0])->Flags |= SFLAG_SWAPCHAIN;
Swapchain->presentParms.BackBufferWidth = BackImpl->currentDesc.Width;
Swapchain->presentParms.BackBufferHeight = BackImpl->currentDesc.Height;
Swapchain->presentParms.BackBufferFormat = BackImpl->resource.format_desc->format;
} else {
HeapFree(GetProcessHeap(), 0, Swapchain->backBuffer);
Swapchain->backBuffer = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment