Commit bf17789a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d10: Release depth stencil state references in d3d10_effect_variable_destroy().

parent 1334fd9d
...@@ -2290,6 +2290,11 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v) ...@@ -2290,6 +2290,11 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v)
d3d10_effect_shader_variable_destroy(&v->u.shader, v->type->basetype); d3d10_effect_shader_variable_destroy(&v->u.shader, v->type->basetype);
break; break;
case D3D10_SVT_DEPTHSTENCIL:
if (v->u.state.object.depth_stencil)
ID3D10DepthStencilState_Release(v->u.state.object.depth_stencil);
break;
default: default:
break; break;
} }
......
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