Use GXDestroyCopyTex on map destroy

Resolves #469
This commit is contained in:
Luke Street
2026-04-26 14:02:28 -06:00
parent e75ea18ef0
commit 90c0bdded0
4 changed files with 19 additions and 1 deletions
+6
View File
@@ -8,6 +8,9 @@
#include "d/d_debug_viewer.h"
#include "d/d_menu_fmap_map.h"
#include "m_Do/m_Do_graphic.h"
#if TARGET_PC
#include <dolphin/gx/GXExtra.h>
#endif
#include <cstring>
static u8 twoValueLineInterpolation(u8 i_value1, u8 i_value2, f32 i_param) {
@@ -494,6 +497,9 @@ void dMenu_FmapMap_c::_delete() {
mResTIMG = NULL;
}
if (mMapImage_p != NULL) {
#if TARGET_PC
GXDestroyCopyTex(mMapImage_p);
#endif
JKR_DELETE_ARRAY(mMapImage_p);
mMapImage_p = NULL;
}