Commit a43da376 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Build the device list only once in wined3d_output_find_closest_matching_mode().

parent a601930a
...@@ -1394,7 +1394,7 @@ HRESULT CDECL wined3d_output_find_closest_matching_mode(struct wined3d_output *o ...@@ -1394,7 +1394,7 @@ HRESULT CDECL wined3d_output_find_closest_matching_mode(struct wined3d_output *o
for (i = 0; i < mode_count; ++i) for (i = 0; i < mode_count; ++i)
{ {
if (FAILED(hr = wined3d_output_get_mode(output, mode->format_id, if (FAILED(hr = wined3d_output_get_mode(output, mode->format_id,
WINED3D_SCANLINE_ORDERING_UNKNOWN, i, &modes[i], false))) WINED3D_SCANLINE_ORDERING_UNKNOWN, i, &modes[i], true)))
{ {
heap_free(matching_modes); heap_free(matching_modes);
heap_free(modes); heap_free(modes);
......
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