Commit 51b9aba9 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9: Simplify d3d9_device_CheckDeviceState().

parent aee692d2
......@@ -3287,13 +3287,11 @@ static HRESULT WINAPI d3d9_device_CheckDeviceState(IDirect3DDevice9Ex *iface, HW
{
struct d3d9_device *device = impl_from_IDirect3DDevice9Ex(iface);
struct wined3d_swapchain_desc swapchain_desc;
struct wined3d_swapchain *swapchain;
TRACE("iface %p, dst_window %p.\n", iface, dst_window);
wined3d_mutex_lock();
swapchain = wined3d_device_get_swapchain(device->wined3d_device, 0);
wined3d_swapchain_get_desc(swapchain, &swapchain_desc);
wined3d_swapchain_get_desc(device->implicit_swapchains[0]->wined3d_swapchain, &swapchain_desc);
wined3d_mutex_unlock();
if (swapchain_desc.windowed)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment