Example #1
0
 void FreeBatch()
 {
     if (isBatch)
     {
         if (batch != null)
         {
             batch.Dispose();
             batch   = null;
             isBatch = false;
         }
     }
 }
Example #2
0
 public static LTextureBatch DisposeBatchCache(int texId)
 {
     lock (batchPools) {
         LTextureBatch pBatch = (LTextureBatch)CollectionUtils.Remove(batchPools, texId);
         if (pBatch != null)
         {
             lock (pBatch) {
                 pBatch.Dispose();
             }
         }
         return(pBatch);
     }
 }