diff --git a/src/game/bondgun.c b/src/game/bondgun.c index 4c8f313af..04e828d79 100644 --- a/src/game/bondgun.c +++ b/src/game/bondgun.c @@ -53,6 +53,9 @@ #include "lib/lib_317f0.h" #include "data.h" #include "types.h" +#ifndef PLATFORM_N64 +#include "video.h" +#endif #define GUNLOADSTATE_FLUX 0 #define GUNLOADSTATE_MODEL 1 @@ -3640,6 +3643,11 @@ u32 bgunCalculateGunMemCapacity(void) void bgunFreeGunMem(void) { g_Vars.currentplayer->gunctrl.gunmemowner = GUNMEMOWNER_FREE; +#ifndef PLATFORM_N64 + // gunmem is stale and so are the textures in it + // TODO: figure out how to purge only those textures + videoResetTextureCache(); +#endif } void bgunSetGunMemWeapon(s32 weaponnum)