Delete all draw cache on quit

This commit is contained in:
Yousef Khadadeh 2026-02-04 19:19:29 +03:00
parent fcda17c7d3
commit 4124104fbc
3 changed files with 5 additions and 3 deletions

View file

@ -794,7 +794,7 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) {
}
void SDL_AppQuit(void *appstate, SDL_AppResult result) {
DrawingProgramCache::delete_window_cache_surface();
DrawingProgramCache::delete_all_draw_cache();
MainStruct& mS = *((MainStruct*)appstate);
try {