CGraphicsPalette: Use GXDestroyTlutObj

This commit is contained in:
Luke Street 2022-08-09 18:27:33 -04:00
parent cd16431d36
commit d1bcc1d8b5
3 changed files with 8 additions and 1 deletions

View File

@ -19,6 +19,12 @@ CGraphicsPalette::CGraphicsPalette(CInputStream& in) : x0_fmt(EPaletteFormat(in.
// DCFlushRange(xc_entries.get(), x8_entryCount * 2);
}
CGraphicsPalette::~CGraphicsPalette() {
#ifdef AURORA
GXDestroyTlutObj(&x10_tlutObj);
#endif
}
void CGraphicsPalette::Load() {
GXLoadTlut(&x10_tlutObj, GX_TLUT0);
x4_frameLoaded = sCurrentFrameCount;

View File

@ -27,6 +27,7 @@ class CGraphicsPalette {
public:
explicit CGraphicsPalette(EPaletteFormat fmt, int count);
explicit CGraphicsPalette(CInputStream& in);
~CGraphicsPalette();
u16* Lock() {
x1c_locked = true;

2
extern/aurora vendored

@ -1 +1 @@
Subproject commit 5f06d873bc25d139e5c1fe457a3e4706188c64ee
Subproject commit 8cbebc12b2b2d0598a130aa704855ceb89507068