summaryrefslogtreecommitdiff
path: root/src/m_Do/m_Do_ext.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-09-04 07:56:59 -0700
committerGitHub <noreply@github.com>2025-09-04 17:56:59 +0300
commitb45a089e15d79821b07be020db628e01a49b1fd2 (patch)
tree948057548cc19b19d644bd4f300ca6434e6bff11 /src/m_Do/m_Do_ext.cpp
parentee8b843996f4d888903f8c125b95ec1af376877e (diff)
some J3D/misc cleanup (#2628)
* some j3d cleanup * begin using uintptr_t * j3dgraphbase cleanup * j3dgraphanimator cleanup
Diffstat (limited to 'src/m_Do/m_Do_ext.cpp')
-rw-r--r--src/m_Do/m_Do_ext.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/m_Do/m_Do_ext.cpp b/src/m_Do/m_Do_ext.cpp
index b0bd4a9ec1..5288636ec2 100644
--- a/src/m_Do/m_Do_ext.cpp
+++ b/src/m_Do/m_Do_ext.cpp
@@ -3064,18 +3064,18 @@ J3DModel* mDoExt_J3DModel__create(J3DModelData* i_modelData, u32 i_modelFlag, u3
// Update the modelFlag if the model data passed in has a shared dlist object
if (i_modelData->getMaterialNodePointer(0)->getSharedDisplayListObj() != NULL) {
if (i_modelData->isLocked()) {
- i_modelFlag = J3DMdlFlag_Unk20000;
- } else if (i_modelFlag == J3DMdlFlag_Unk20000) {
- i_modelFlag |= J3DMdlFlag_Unk40000;
+ i_modelFlag = J3DMdlFlag_UseSharedDL;
+ } else if (i_modelFlag == J3DMdlFlag_UseSharedDL) {
+ i_modelFlag |= J3DMdlFlag_UseSingleDL;
} else {
- i_modelFlag = J3DMdlFlag_Unk80000;
+ i_modelFlag = J3DMdlFlag_DifferedDLBuffer;
}
}
// Set up the model
- if (!model->entryModelData(i_modelData, i_modelFlag, 1)) {
- if (i_modelFlag == J3DMdlFlag_Unk80000 &&
- model->newDifferedDisplayList(i_differedDlistFlag))
+ if (model->entryModelData(i_modelData, i_modelFlag, 1) == kJ3DError_Success) {
+ if (i_modelFlag == J3DMdlFlag_DifferedDLBuffer &&
+ model->newDifferedDisplayList(i_differedDlistFlag) != kJ3DError_Success)
{
return NULL;
}