ddraw: Use wined3d_get_adapter_display_mode() in d3d_device7_EnumTextureFormats().
This commit is contained in:
parent
bf876d2a7c
commit
339ef6c252
|
@ -1068,8 +1068,7 @@ static HRESULT d3d_device7_EnumTextureFormats(IDirect3DDevice7 *iface,
|
|||
wined3d_mutex_lock();
|
||||
|
||||
memset(&mode, 0, sizeof(mode));
|
||||
hr = wined3d_device_get_display_mode(device->ddraw->wined3d_device, 0, &mode);
|
||||
if (FAILED(hr))
|
||||
if (FAILED(hr = wined3d_get_adapter_display_mode(device->ddraw->wined3d, WINED3DADAPTER_DEFAULT, &mode)))
|
||||
{
|
||||
wined3d_mutex_unlock();
|
||||
WARN("Cannot get the current adapter format\n");
|
||||
|
|
Loading…
Reference in New Issue