mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 09:25:06 +00:00
wined3d: Get rid of a redundant branch.
This commit is contained in:
parent
c1857959b8
commit
b12cae8c99
|
@ -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,
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue