protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                vertexBuffer.Dispose();
                basicEffect.Dispose();
                device.Dispose();
            }

            base.Dispose(disposing);
        }
예제 #2
0
 protected override void Dispose(bool disposing)
 {
     if (!base.IsDisposed)
     {
         if (disposing)
         {
             _device.Dispose();
             _dummyForm.Dispose();
         }
         base.Dispose(disposing);
     }
 }