wined3d: Call wined3d_texture_decref() instead of wined3d_surface_decref() in wined3d_device_reset().
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ff3f729e88
commit
b6c7cd9720
@ -4525,7 +4525,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
|
|||||||
|
|
||||||
if (device->onscreen_depth_stencil)
|
if (device->onscreen_depth_stencil)
|
||||||
{
|
{
|
||||||
wined3d_surface_decref(device->onscreen_depth_stencil);
|
wined3d_texture_decref(device->onscreen_depth_stencil->container);
|
||||||
device->onscreen_depth_stencil = NULL;
|
device->onscreen_depth_stencil = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user