From 888218c446e7d41918e24b7f7cf27242c5209ab5 Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 21 Jun 2022 19:28:54 +1200 Subject: [PATCH] image: Flush texture caches --- src/picture.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/picture.cpp b/src/picture.cpp index ad508a9e4ec..698dc47f7c8 100644 --- a/src/picture.cpp +++ b/src/picture.cpp @@ -241,6 +241,9 @@ void flush_cache() lit_textures_.flush(); in_hex_info_.flush(); is_empty_hex_.flush(); + textures_.clear(); + textures_hexed_.clear(); + texture_tod_colored_.clear(); mini_terrain_cache.clear(); mini_fogged_terrain_cache.clear(); mini_highlighted_terrain_cache.clear(); @@ -718,6 +721,7 @@ void set_color_adjustment(int r, int g, int b) tod_colored_images_.flush(); lit_images_.flush(); lit_textures_.flush(); + texture_tod_colored_.clear(); } }