public override void Dispose() { if (_mat != null) { _mat.Dispose(); } if (_quad != null) { _quad.Dispose(); } base.Dispose(); }
void Release() { if (_ctx != null) { _ctx.Dispose(); } if (_surface != null) { _surface.Dispose(); } if (_mat != null) { _mat.Dispose(); } if (_quad != null) { _quad.Dispose(); } }