mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 16:27:43 +00:00
CGraphicsPalette: Use GXDestroyTlutObj
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
2
extern/aurora
vendored
Submodule extern/aurora updated: 5f06d873bc...8cbebc12b2
Reference in New Issue
Block a user