Freeing display list allocations
This commit is contained in:
@@ -67,7 +67,7 @@ s32 is_anim_past_end(struct MarioState *m) {
|
||||
s16 set_mario_animation(struct MarioState *m, s32 targetAnimID) {
|
||||
struct Object *o = m->marioObj;
|
||||
|
||||
hack_load_mario_animation_ex(m->animation, targetAnimID);
|
||||
shim_load_mario_animation(m->animation, targetAnimID);
|
||||
struct Animation *targetAnim = m->animation->targetAnim;
|
||||
//if (load_patchable_table(m->animation, targetAnimID)) {
|
||||
// targetAnim->values = (void *) VIRTUAL_TO_PHYSICAL((u8 *) targetAnim + (uintptr_t) targetAnim->values);
|
||||
@@ -101,7 +101,7 @@ s16 set_mario_animation(struct MarioState *m, s32 targetAnimID) {
|
||||
s16 set_mario_anim_with_accel(struct MarioState *m, s32 targetAnimID, s32 accel) {
|
||||
struct Object *o = m->marioObj;
|
||||
|
||||
hack_load_mario_animation_ex(m->animation, targetAnimID);
|
||||
shim_load_mario_animation(m->animation, targetAnimID);
|
||||
struct Animation *targetAnim = m->animation->targetAnim;
|
||||
//if (load_patchable_table(m->animation, targetAnimID)) {
|
||||
// targetAnim->values = (void *) VIRTUAL_TO_PHYSICAL((u8 *) targetAnim + (uintptr_t) targetAnim->values);
|
||||
|
||||
@@ -1125,6 +1125,8 @@ void geo_process_root_hack_single_node(struct GraphNode *node)
|
||||
{
|
||||
gDisplayListHead = NULL; // Currently unused, but referenced
|
||||
|
||||
display_list_pool_reset();
|
||||
|
||||
Mtx *initialMatrix;
|
||||
|
||||
gDisplayListHeap = alloc_only_pool_init();
|
||||
@@ -1162,5 +1164,5 @@ void geo_process_root_hack_single_node(struct GraphNode *node)
|
||||
|
||||
gMarioObject->header.gfx.throwMatrix = NULL;
|
||||
|
||||
main_pool_free(gDisplayListHeap);
|
||||
alloc_only_pool_free(gDisplayListHeap);
|
||||
}
|
||||
Reference in New Issue
Block a user