wined3d: Update the auto depth stencil buffer size on reset.

This commit is contained in:
Stefan Dösinger 2008-01-25 18:04:05 +01:00 committed by Alexandre Julliard
parent b706a62aff
commit c1538f8048
1 changed files with 4 additions and 0 deletions

View File

@ -6901,6 +6901,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
for(i = 0; i < swapchain->presentParms.BackBufferCount; i++) {
updateSurfaceDesc((IWineD3DSurfaceImpl *)swapchain->backBuffer[i], pPresentationParameters);
}
if(This->auto_depth_stencil_buffer) {
updateSurfaceDesc((IWineD3DSurfaceImpl *)This->auto_depth_stencil_buffer, pPresentationParameters);
}
/* Now set the new viewport */
IWineD3DDevice_SetViewport(iface, &vp);