Пример #1
0
 public void DisposeChunkRenderer(ChunkRenderer c)
 {
     DrawEvent -= c.Draw;
     if (rendererPool.Add(c))
     {
         c.CleanUp();
     }
     else
     {
         c.Dispose();
     }
 }
Пример #2
0
 private static void OnClose()
 {
     //Remember to delete the buffers.
     tex.Dispose();
     renderer.Dispose();
 }