From 93992c760d8f4268e819ad32f944521fa4d4709c Mon Sep 17 00:00:00 2001 From: Jan Sikorski Date: Fri, 15 Oct 2021 14:26:27 +0200 Subject: [PATCH] d3d8: Don't grab wined3d lock for wined3d_vertex_declaration_decref(). Signed-off-by: Jan Sikorski Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/d3d8/vertexdeclaration.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/d3d8/vertexdeclaration.c b/dlls/d3d8/vertexdeclaration.c index d0e733b9e37..e63e379444e 100644 --- a/dlls/d3d8/vertexdeclaration.c +++ b/dlls/d3d8/vertexdeclaration.c @@ -319,9 +319,7 @@ void d3d8_vertex_declaration_destroy(struct d3d8_vertex_declaration *declaration { TRACE("declaration %p.\n", declaration); - wined3d_mutex_lock(); wined3d_vertex_declaration_decref(declaration->wined3d_vertex_declaration); - wined3d_mutex_unlock(); } static const struct wined3d_parent_ops d3d8_vertexdeclaration_wined3d_parent_ops =