d3d10: Release sampler state references in d3d10_effect_variable_destroy().
This commit is contained in:
parent
7c70f5434e
commit
d3aba2d635
|
@ -2305,6 +2305,11 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v)
|
|||
ID3D10RasterizerState_Release(v->u.state.object.rasterizer);
|
||||
break;
|
||||
|
||||
case D3D10_SVT_SAMPLER:
|
||||
if (v->u.state.object.sampler)
|
||||
ID3D10SamplerState_Release(v->u.state.object.sampler);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue