mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 15:59:31 +00:00
image: Flush texture caches
This commit is contained in:
parent
ab9fe9e09e
commit
888218c446
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user