mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-05 09:33:48 -04:00
Pjb dev 3 (#48)
* Undo array allocation changes from #43 Doesn't work * Expand dmeter heap sizes, give names * Fix manual operator delete call in resource.cpp * Disable map rendering for now Aurora can't handle lines * Re-enable assert heap on DVD thread Should be fine? * Some basic debug groups with the new Aurora API * Allow Aurora backend to be set via CLI * Give materials debug groups * More debug groups * JKRHeap separation: array edition Pain
This commit is contained in:
committed by
GitHub
parent
9e303b063f
commit
15732e241c
+6
-6
@@ -88,7 +88,7 @@ bool cBgW::SetVtx() {
|
||||
if (mFlags & NO_VTX_TBL_e) {
|
||||
pm_vtx_tbl = NULL;
|
||||
} else if (mFlags & MOVE_BG_e) {
|
||||
pm_vtx_tbl = (cBgD_Vtx_t*)JKR_NEW Vec[pm_bgd->m_v_num];
|
||||
pm_vtx_tbl = (cBgD_Vtx_t*)JKR_NEW_ARRAY(Vec, pm_bgd->m_v_num);
|
||||
|
||||
if (pm_vtx_tbl == NULL) {
|
||||
return true;
|
||||
@@ -139,7 +139,7 @@ void cBgW::CalcPlane() {
|
||||
}
|
||||
|
||||
bool cBgW::SetTri() {
|
||||
pm_tri = JKR_NEW cBgW_TriElm[pm_bgd->m_t_num];
|
||||
pm_tri = JKR_NEW_ARRAY(cBgW_TriElm, pm_bgd->m_t_num);
|
||||
|
||||
if (pm_tri == NULL) {
|
||||
return true;
|
||||
@@ -387,25 +387,25 @@ bool cBgW::Set(cBgD_t* pbgd, u32 flags, Mtx* pbase_mtx) {
|
||||
return true;
|
||||
}
|
||||
|
||||
pm_rwg = JKR_NEW cBgW_RwgElm[pm_bgd->m_t_num];
|
||||
pm_rwg = JKR_NEW_ARRAY(cBgW_RwgElm, pm_bgd->m_t_num);
|
||||
if (pm_rwg == NULL) {
|
||||
FreeArea();
|
||||
return true;
|
||||
}
|
||||
|
||||
pm_blk = JKR_NEW cBgW_BlkElm[pm_bgd->m_b_num];
|
||||
pm_blk = JKR_NEW_ARRAY(cBgW_BlkElm, pm_bgd->m_b_num);
|
||||
if (pm_blk == NULL) {
|
||||
FreeArea();
|
||||
return true;
|
||||
}
|
||||
|
||||
pm_node_tree = JKR_NEW cBgW_NodeTree[pm_bgd->m_tree_num];
|
||||
pm_node_tree = JKR_NEW_ARRAY(cBgW_NodeTree, pm_bgd->m_tree_num);
|
||||
if (pm_node_tree == NULL) {
|
||||
FreeArea();
|
||||
return true;
|
||||
}
|
||||
|
||||
pm_grp = JKR_NEW cBgW_GrpElm[pm_bgd->m_g_num];
|
||||
pm_grp = JKR_NEW_ARRAY(cBgW_GrpElm, pm_bgd->m_g_num);
|
||||
if (pm_grp == NULL) {
|
||||
FreeArea();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user