fix pews texture

This commit is contained in:
Jasper St. Pierre
2026-04-12 17:33:53 -07:00
parent 0adbd7ea5d
commit 15cf782d9f
4 changed files with 12 additions and 0 deletions
+3
View File
@@ -28,6 +28,9 @@ void daAlink_c::hsChainShape_c::draw() {
j3dSys.setVtxPos(modelData->getVtxPosArray(), modelData->getVtxNum());
j3dSys.setVtxNrm(modelData->getVtxNrmArray(), modelData->getNrmNum());
j3dSys.setVtxCol(modelData->getVtxColorArray(0), modelData->getColNum());
#if TARGET_PC
j3dSys.setTexture(modelData->getTexture());
#endif
J3DShape::resetVcdVatCache();
material->loadSharedDL();
+3
View File
@@ -256,6 +256,9 @@ void daObjFchain_shape_c::draw() {
j3dSys.setVtxPos(modelData->getVtxPosArray(), modelData->getVtxNum());
j3dSys.setVtxNrm(modelData->getVtxNrmArray(), modelData->getNrmNum());
j3dSys.setVtxCol(modelData->getVtxColorArray(0), modelData->getColNum());
#if TARGET_PC
j3dSys.setTexture(modelData->getTexture());
#endif
J3DShape::resetVcdVatCache();
material->loadSharedDL();
material->getShape()->loadPreDrawSetting();
+3
View File
@@ -315,6 +315,9 @@ void daObjWchain_shape_c::draw() {
j3dSys.setVtxPos(model_data->getVtxPosArray(), model_data->getVtxNum());
j3dSys.setVtxNrm(model_data->getVtxNrmArray(), model_data->getNrmNum());
j3dSys.setVtxCol(model_data->getVtxColorArray(0), model_data->getColNum());
#if TARGET_PC
j3dSys.setTexture(model_data->getTexture());
#endif
J3DShape::resetVcdVatCache();
material->loadSharedDL();
material->getShape()->loadPreDrawSetting();
+3
View File
@@ -11,6 +11,9 @@ void dMdl_c::draw() {
j3dSys.setVtxCol(mpModelData->getVtxColorArray(0), mpModelData->getColNum());
J3DShape::resetVcdVatCache();
#if TARGET_PC
j3dSys.setTexture(mpModelData->getTexture());
#endif
J3DShape* shape = mpModelData->getMaterialNodePointer(mMaterialId)->getShape();
mpModelData->getMaterialNodePointer(mMaterialId)->loadSharedDL();
shape->loadPreDrawSetting();