ChunkData::~ChunkData() { for(int i = 0; i < MAX_SLICES; i++) { auto &slice = slice_[i]; al_destroy_vertex_buffer(slice.vbo); } al_destroy_vertex_decl(vtxdecl_); }
void ImGui_ImplAllegro5_Shutdown() { ImGui_ImplAllegro5_InvalidateDeviceObjects(); g_Display = NULL; g_Time = 0.0; if (g_VertexDecl) al_destroy_vertex_decl(g_VertexDecl); g_VertexDecl = NULL; if (g_ClipboardTextData) al_free(g_ClipboardTextData); g_ClipboardTextData = NULL; }