d3d10: Release rasterizer state references in d3d10_effect_variable_destroy().

This commit is contained in:
Henri Verbeet 2014-02-14 10:50:20 +01:00 committed by Alexandre Julliard
parent 577217f91a
commit 7c70f5434e
1 changed files with 5 additions and 0 deletions

View File

@ -2300,6 +2300,11 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v)
ID3D10BlendState_Release(v->u.state.object.blend); ID3D10BlendState_Release(v->u.state.object.blend);
break; break;
case D3D10_SVT_RASTERIZER:
if (v->u.state.object.rasterizer)
ID3D10RasterizerState_Release(v->u.state.object.rasterizer);
break;
default: default:
break; break;
} }