Commit ed47f259 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Don't take the wined3d mutex during WM_DISPLAYCHANGE either.

parent 40b15a38
......@@ -5359,6 +5359,8 @@ static void CDECL device_parent_wined3d_device_created(struct wined3d_device_par
TRACE("device_parent %p, device %p.\n", device_parent, device);
}
/* This is run from device_process_message() in wined3d, we can't take the
* wined3d mutex. */
static void CDECL device_parent_mode_changed(struct wined3d_device_parent *device_parent)
{
struct IDirectDrawImpl *ddraw = ddraw_from_device_parent(device_parent);
......
......@@ -5912,9 +5912,7 @@ LRESULT device_process_message(struct wined3d_device *device, HWND window, BOOL
}
else if (message == WM_DISPLAYCHANGE)
{
wined3d_mutex_lock();
device->device_parent->ops->mode_changed(device->device_parent);
wined3d_mutex_unlock();
}
if (unicode)
......
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