Commit b12cae8c authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Get rid of a redundant branch.

parent c1857959
...@@ -5848,6 +5848,8 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device, ...@@ -5848,6 +5848,8 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
device_init_swapchain_state(device, swapchain); device_init_swapchain_state(device, swapchain);
if (wined3d_settings.logo) if (wined3d_settings.logo)
device_load_logo(device, wined3d_settings.logo); device_load_logo(device, wined3d_settings.logo);
hr = device->adapter->adapter_ops->adapter_init_3d(device);
} }
else else
{ {
...@@ -5857,12 +5859,8 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device, ...@@ -5857,12 +5859,8 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
wined3d_device_context_set_depth_stencil_view(context, view); wined3d_device_context_set_depth_stencil_view(context, view);
} }
if (reset_state) /* All done. There is no need to reload resources or shaders, this will
hr = device->adapter->adapter_ops->adapter_init_3d(device); * happen automatically on the first use. */
/* All done. There is no need to reload resources or shaders, this will happen automatically on the
* first use
*/
return hr; return hr;
} }
......
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