mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
wined3d: Don't take the wined3d mutex during WM_DISPLAYCHANGE either.
This commit is contained in:
parent
40b15a380d
commit
ed47f259bd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user