summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Sim.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-09 00:42:12 +0100
committerAki <please@ignore.pl>2022-03-09 00:42:12 +0100
commitaf4e8e1717405963ff89a114832d376f937786da (patch)
treee23aad2f78d8e84148f4e05db83cb228521a2628 /Stars45/Sim.cpp
parent861995c88ef312beb4bc1b7920d612bd52590303 (diff)
downloadstarshatter-af4e8e1717405963ff89a114832d376f937786da.zip
starshatter-af4e8e1717405963ff89a114832d376f937786da.tar.gz
starshatter-af4e8e1717405963ff89a114832d376f937786da.tar.bz2
Changed to use Video's cache invalidation method directly
Diffstat (limited to 'Stars45/Sim.cpp')
-rw-r--r--Stars45/Sim.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Stars45/Sim.cpp b/Stars45/Sim.cpp
index 3933855..9e193b9 100644
--- a/Stars45/Sim.cpp
+++ b/Stars45/Sim.cpp
@@ -268,9 +268,9 @@ Sim::UnloadMission()
RadioTraffic::DiscardMessages();
// release texture memory for 2D screens:
- Starshatter* stars = Starshatter::GetInstance();
- if (stars)
- stars->InvalidateTextureCache();
+ Video* video = Video::GetInstance();
+ if (video)
+ video->InvalidateCache();
cam_dir = CameraDirector::GetInstance();
if (cam_dir)