wined3d: Propagate HRESULTs in wined3d_swapchain_resize_target().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
650abc567a
commit
74351205ac
|
@ -1358,7 +1358,7 @@ HRESULT CDECL wined3d_swapchain_resize_target(struct wined3d_swapchain *swapchai
|
||||||
&actual_mode, NULL)))
|
&actual_mode, NULL)))
|
||||||
{
|
{
|
||||||
ERR("Failed to get display mode, hr %#x.\n", hr);
|
ERR("Failed to get display mode, hr %#x.\n", hr);
|
||||||
return WINED3DERR_INVALIDCALL;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetRect(&window_rect, 0, 0, actual_mode.width, actual_mode.height);
|
SetRect(&window_rect, 0, 0, actual_mode.width, actual_mode.height);
|
||||||
|
|
Loading…
Reference in New Issue