d3d9: Fix RTV refcounting in d3d9_texture_cube_AddRef().

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2020-03-18 14:01:24 +01:00 committed by Alexandre Julliard
parent 140186b0c3
commit d7eba2a9cb
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ static ULONG WINAPI d3d9_texture_cube_AddRef(IDirect3DCubeTexture9 *iface)
wined3d_mutex_lock(); wined3d_mutex_lock();
LIST_FOR_EACH_ENTRY(surface, &texture->rtv_list, struct d3d9_surface, rtv_entry) LIST_FOR_EACH_ENTRY(surface, &texture->rtv_list, struct d3d9_surface, rtv_entry)
{ {
wined3d_rendertarget_view_decref(surface->wined3d_rtv); wined3d_rendertarget_view_incref(surface->wined3d_rtv);
} }
wined3d_texture_incref(texture->wined3d_texture); wined3d_texture_incref(texture->wined3d_texture);
wined3d_mutex_unlock(); wined3d_mutex_unlock();