protected override void Dispose ( bool disposing )
{
if (disposing) {
deviceContext.Flush();
SafeDispose( ref deviceContext );
SafeDispose( ref display );
SamplerState.DisposeStates();
//DepthStencilState.DisposeStates();
}
base.Dispose(disposing);
}