From 15cf782d9fc7a3d52f733319481273e442684df1 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 12 Apr 2026 17:33:53 -0700 Subject: [PATCH] fix pews texture --- src/d/actor/d_a_alink_hook.inc | 3 +++ src/d/actor/d_a_obj_fchain.cpp | 3 +++ src/d/actor/d_a_obj_wchain.cpp | 3 +++ src/d/d_model.cpp | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/d/actor/d_a_alink_hook.inc b/src/d/actor/d_a_alink_hook.inc index 7e2f3628b9..3641015993 100644 --- a/src/d/actor/d_a_alink_hook.inc +++ b/src/d/actor/d_a_alink_hook.inc @@ -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(); diff --git a/src/d/actor/d_a_obj_fchain.cpp b/src/d/actor/d_a_obj_fchain.cpp index 7352c0657c..e681fec4e7 100644 --- a/src/d/actor/d_a_obj_fchain.cpp +++ b/src/d/actor/d_a_obj_fchain.cpp @@ -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(); diff --git a/src/d/actor/d_a_obj_wchain.cpp b/src/d/actor/d_a_obj_wchain.cpp index 92cb2048e5..25e2c4f69f 100644 --- a/src/d/actor/d_a_obj_wchain.cpp +++ b/src/d/actor/d_a_obj_wchain.cpp @@ -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(); diff --git a/src/d/d_model.cpp b/src/d/d_model.cpp index 41a054571f..80dfbc0953 100644 --- a/src/d/d_model.cpp +++ b/src/d/d_model.cpp @@ -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();