示例#1
0
 public override void Dispose()
 {
     disposeChilderen();
     if (texture != null)
     {
         texture.Dispose();
         texture = null;
     }
     base.Dispose();
 }
示例#2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_texture2D != null)
         {
             _texture2D.Dispose();
         }
     }
     base.Dispose(disposing);
 }