Jan Sikorski : d3d11: Don't grab wined3d lock for wined3d_texture_decref().
Alexandre Julliard
julliard at winehq.org
Fri Oct 15 15:40:05 CDT 2021
Module: wine
Branch: master
Commit: 589a97ae34ef21b089dc7800928a18e98641d7ba
URL: https://source.winehq.org/git/wine.git/?a=commit;h=589a97ae34ef21b089dc7800928a18e98641d7ba
Author: Jan Sikorski <jsikorski at codeweavers.com>
Date: Fri Oct 15 14:26:03 2021 +0200
d3d11: Don't grab wined3d lock for wined3d_texture_decref().
Signed-off-by: Jan Sikorski <jsikorski at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d11/texture.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/dlls/d3d11/texture.c b/dlls/d3d11/texture.c
index 2a43b24b226..4fe395a206c 100644
--- a/dlls/d3d11/texture.c
+++ b/dlls/d3d11/texture.c
@@ -92,10 +92,7 @@ static ULONG STDMETHODCALLTYPE d3d11_texture1d_Release(ID3D11Texture1D *iface)
if (!refcount)
{
ID3D11Device2 *device = texture->device;
-
- wined3d_mutex_lock();
wined3d_texture_decref(texture->wined3d_texture);
- wined3d_mutex_unlock();
/* Release the device last, it may cause the wined3d device to be
* destroyed. */
ID3D11Device2_Release(device);
@@ -578,10 +575,7 @@ static ULONG STDMETHODCALLTYPE d3d11_texture2d_Release(ID3D11Texture2D *iface)
if (!refcount)
{
ID3D11Device2 *device = texture->device;
-
- wined3d_mutex_lock();
wined3d_texture_decref(texture->wined3d_texture);
- wined3d_mutex_unlock();
/* Release the device last, it may cause the wined3d device to be
* destroyed. */
ID3D11Device2_Release(device);
@@ -1140,9 +1134,7 @@ static ULONG STDMETHODCALLTYPE d3d11_texture3d_Release(ID3D11Texture3D *iface)
{
ID3D11Device2 *device = texture->device;
- wined3d_mutex_lock();
wined3d_texture_decref(texture->wined3d_texture);
- wined3d_mutex_unlock();
/* Release the device last, it may cause the wined3d device to be
* destroyed. */
ID3D11Device2_Release(device);
More information about the wine-cvs
mailing list