public override void Dispose()
 {
     if (_memBmp != null)
     {
         if (_isMemBmpOwner)
         {
             _memBmp.Dispose();
         }
         _memBmp = null;
     }
 }
Exemple #2
0
 public override void Dispose()
 {
     ReleaseServerSideTexture();
     if (_memBitmap != null)
     {
         //notify unused here?
         if (_isOwner)
         {
             _memBitmap.Dispose();
         }
         _memBitmap = null; //***
     }
 }
Exemple #3
0
 public override void Dispose()
 {
     if (TextureContainer != null)
     {
         //after unload->
         //OwnerActiveTextureUnit will set OwnerActiveTextureUnit property to null
         TextureContainer.UnloadGLBitmap();
     }
     ReleaseServerSideTexture();
     if (_memBitmap != null)
     {
         //notify unused here?
         if (_isOwner)
         {
             _memBitmap.Dispose();
         }
         _memBitmap = null; //***
     }
 }