public void DisposeChunkRenderer(ChunkRenderer c) { DrawEvent -= c.Draw; if (rendererPool.Add(c)) { c.CleanUp(); } else { c.Dispose(); } }
private static void OnClose() { //Remember to delete the buffers. tex.Dispose(); renderer.Dispose(); }