wined3d: Implement resetting the device window in wined3d_device_reset().

This commit is contained in:
Henri Verbeet 2012-02-29 17:22:32 +01:00 committed by Alexandre Julliard
parent 88348b24d0
commit 90739d9474

View file

@ -5357,7 +5357,13 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
if (swapchain_desc->device_window
&& swapchain_desc->device_window != swapchain->desc.device_window)
FIXME("Cannot change the device window yet.\n");
{
TRACE("Changing the device window from %p to %p.\n",
swapchain->desc.device_window, swapchain_desc->device_window);
swapchain->desc.device_window = swapchain_desc->device_window;
swapchain->device_window = swapchain_desc->device_window;
wined3d_swapchain_set_window(swapchain, NULL);
}
if (swapchain_desc->enable_auto_depth_stencil && !device->auto_depth_stencil)
{