remove double swapping

This commit is contained in:
Lurs
2026-03-20 15:50:57 +01:00
parent 7ae18f3a9d
commit 0474db2fdf
2 changed files with 208 additions and 10 deletions
+10 -1
View File
@@ -115,7 +115,16 @@ public:
return pd;
}
void getTri1Pos(KC_PrismData* pd, Vec** nrm) const { *nrm = &m_pkc_head->m_pos_data[pd->pos_i]; }
void getTri1Pos(KC_PrismData* pd, Vec** nrm) const {
#if TARGET_PC
static Vec pos_v;
pos_v = m_pkc_head->m_pos_data[pd->pos_i];
be_swap(pos_v);
*nrm = &pos_v;
#else
*nrm = &m_pkc_head->m_pos_data[pd->pos_i];
#endif
}
private:
/* 0x18 */ KC_Header* m_pkc_head;