d3d10: Release depth stencil state references in d3d10_effect_variable_destroy().
This commit is contained in:
parent
1334fd9d70
commit
bf17789a33
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue