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

This commit is contained in:
Henri Verbeet 2014-02-14 10:50:18 +01:00 committed by Alexandre Julliard
parent 1334fd9d70
commit bf17789a33
1 changed files with 5 additions and 0 deletions

View File

@ -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);
break;
case D3D10_SVT_DEPTHSTENCIL:
if (v->u.state.object.depth_stencil)
ID3D10DepthStencilState_Release(v->u.state.object.depth_stencil);
break;
default:
break;
}