d3d9: Use IDirect3DVolume9_AddRef to increment the volume's refcount.
This commit is contained in:
parent
4a10bbc76d
commit
e51f6b644d
|
@ -333,7 +333,7 @@ static HRESULT WINAPI IDirect3DVolumeTexture9Impl_GetVolumeLevel(IDirect3DVolume
|
|||
}
|
||||
|
||||
*volume = wined3d_resource_get_parent(sub_resource);
|
||||
IDirect3DVolumeTexture9_AddRef(*volume);
|
||||
IDirect3DVolume9_AddRef(*volume);
|
||||
wined3d_mutex_unlock();
|
||||
|
||||
return D3D_OK;
|
||||
|
|
Loading…
Reference in New Issue