d3d8: Replace surface refcounting with parent texture refcounting.
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
a996804a0d
commit
2a51e695a1
|
@ -70,7 +70,7 @@ static ULONG WINAPI d3d8_surface_AddRef(IDirect3DSurface8 *iface)
|
|||
wined3d_mutex_lock();
|
||||
if (surface->wined3d_rtv)
|
||||
wined3d_rendertarget_view_incref(surface->wined3d_rtv);
|
||||
wined3d_surface_incref(surface->wined3d_surface);
|
||||
wined3d_texture_incref(surface->wined3d_texture);
|
||||
wined3d_mutex_unlock();
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ static ULONG WINAPI d3d8_surface_Release(IDirect3DSurface8 *iface)
|
|||
wined3d_mutex_lock();
|
||||
if (surface->wined3d_rtv)
|
||||
wined3d_rendertarget_view_decref(surface->wined3d_rtv);
|
||||
wined3d_surface_decref(surface->wined3d_surface);
|
||||
wined3d_texture_decref(surface->wined3d_texture);
|
||||
wined3d_mutex_unlock();
|
||||
|
||||
if (parent_device)
|
||||
|
|
Loading…
Reference in New Issue