diff options
author | Aaron Suen <warr1024@gmail.com> | 2015-03-09 09:32:11 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-04-01 00:01:05 -0400 |
commit | 6d61375cc72bad5c569d25c253adca4e3701dd27 (patch) | |
tree | 790accab0443ebcff77790da83a306d713045b01 /src/client.cpp | |
parent | b4247dff2e003dd8c5ea5a1f3ae349d0bfab90bc (diff) | |
download | minetest-6d61375cc72bad5c569d25c253adca4e3701dd27.tar.gz minetest-6d61375cc72bad5c569d25c253adca4e3701dd27.tar.bz2 minetest-6d61375cc72bad5c569d25c253adca4e3701dd27.zip |
Clean scaling pre-filter for formspec/HUD.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index dc2b54e9b..ba78cb51e 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -49,6 +49,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "drawscene.h" #include "database-sqlite3.h" #include "serialization.h" +#include "guiscalingfilter.h" extern gui::IGUIEnvironment* guienv; @@ -1607,6 +1608,11 @@ void Client::afterContentReceived(IrrlichtDevice *device) const wchar_t* text = wgettext("Loading textures..."); + // Clear cached pre-scaled 2D GUI images, as this cache + // might have images with the same name but different + // content from previous sessions. + guiScalingCacheClear(device->getVideoDriver()); + // Rebuild inherited images and recreate textures infostream<<"- Rebuilding images and textures"<<std::endl; draw_load_screen(text,device, guienv, 0, 70); |