diff --git a/libs/JSystem/src/J3DGraphBase/J3DPacket.cpp b/libs/JSystem/src/J3DGraphBase/J3DPacket.cpp index 7bef09666c..571a9ef100 100644 --- a/libs/JSystem/src/J3DGraphBase/J3DPacket.cpp +++ b/libs/JSystem/src/J3DGraphBase/J3DPacket.cpp @@ -222,9 +222,6 @@ void J3DMatPacket::draw() { } #endif - PolygonOffset* temp = mpMaterial->getPEBlock()->getPolygonOffset(); - GX2SetPolygonOffset(temp->mFrontOffset, temp->mFrontScale, temp->mBackOffset, temp->mBackScale, temp->mClamp); - callDL(); J3DShapePacket* packet = getShapePacket(); @@ -233,7 +230,12 @@ void J3DMatPacket::draw() { #endif packet->getShape()->loadPreDrawSetting(); - // TODO: MAT4 sets polygon offset here in HD +#if DUSK_TPHD + { + const auto* offs = mpMaterial->getPEBlock()->getPolygonOffset(); + GX2SetPolygonOffset(offs->mFrontOffset, offs->mFrontScale, offs->mBackOffset, offs->mBackScale, offs->mClamp); + } +#endif while (packet != NULL) { if (packet->getDisplayListObj() != NULL) {