Commit 220a55c3 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Use wined3d_get_adapter_display_mode() in d3d_device2_EnumTextureFormats().

parent 339ef6c2
......@@ -1198,8 +1198,7 @@ static HRESULT WINAPI d3d_device2_EnumTextureFormats(IDirect3DDevice2 *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");
......
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