mirror of
https://github.com/reactos/wine.git
synced 2025-02-22 22:01:51 +00:00
wined3d: Only unset the onscreen depth / stencil buffer once in wined3d_device_reset().
This commit is contained in:
parent
394519db67
commit
0ee3007963
@ -5289,12 +5289,6 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
|
||||
}
|
||||
}
|
||||
|
||||
if (device->onscreen_depth_stencil)
|
||||
{
|
||||
wined3d_surface_decref(device->onscreen_depth_stencil);
|
||||
device->onscreen_depth_stencil = NULL;
|
||||
}
|
||||
|
||||
/* Reset the depth stencil */
|
||||
if (swapchain_desc->enable_auto_depth_stencil)
|
||||
wined3d_device_set_depth_stencil(device, device->auto_depth_stencil);
|
||||
|
Loading…
x
Reference in New Issue
Block a user