From af4e8e1717405963ff89a114832d376f937786da Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 9 Mar 2022 00:42:12 +0100 Subject: Changed to use Video's cache invalidation method directly --- Stars45/Sim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Stars45/Sim.cpp') 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) -- cgit v1.1