Commit 93992c76 authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

d3d8: Don't grab wined3d lock for wined3d_vertex_declaration_decref().

parent c9b5e2a7
...@@ -319,9 +319,7 @@ void d3d8_vertex_declaration_destroy(struct d3d8_vertex_declaration *declaration ...@@ -319,9 +319,7 @@ void d3d8_vertex_declaration_destroy(struct d3d8_vertex_declaration *declaration
{ {
TRACE("declaration %p.\n", declaration); TRACE("declaration %p.\n", declaration);
wined3d_mutex_lock();
wined3d_vertex_declaration_decref(declaration->wined3d_vertex_declaration); wined3d_vertex_declaration_decref(declaration->wined3d_vertex_declaration);
wined3d_mutex_unlock();
} }
static const struct wined3d_parent_ops d3d8_vertexdeclaration_wined3d_parent_ops = static const struct wined3d_parent_ops d3d8_vertexdeclaration_wined3d_parent_ops =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment