示例#1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         // Main thread, do direct GL deletion.
         _clyde.DeleteTexture(TextureId);
     }
     else
     {
         // Finalizer thread
         _clyde._textureDisposeQueue.Enqueue(TextureId);
     }
 }
 public override void Delete()
 {
     _clyde.DeleteTexture(this);
 }