mirror of https://github.com/AxioDL/metaforce.git
CGraphicsPalette: Use GXDestroyTlutObj
This commit is contained in:
parent
cd16431d36
commit
d1bcc1d8b5
|
@ -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;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 5f06d873bc25d139e5c1fe457a3e4706188c64ee
|
||||
Subproject commit 8cbebc12b2b2d0598a130aa704855ceb89507068
|
Loading…
Reference in New Issue