summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphBase/J3DTexture.h
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2024-06-04 23:25:37 +0300
committerGitHub <noreply@github.com>2024-06-04 14:25:37 -0600
commit1c1e65bc4b018b87159348c80dc5ea8feed8c6f2 (patch)
treea5c69f23b4389fe671662aee05ae0008d07a8427 /include/JSystem/J3DGraphBase/J3DTexture.h
parent59175a46fdaa673640a29203850ff4558379dab9 (diff)
Work on J3DMatBlock (#2164)
Diffstat (limited to 'include/JSystem/J3DGraphBase/J3DTexture.h')
-rw-r--r--include/JSystem/J3DGraphBase/J3DTexture.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DTexture.h b/include/JSystem/J3DGraphBase/J3DTexture.h
index 479d674ed8..ef3838def3 100644
--- a/include/JSystem/J3DGraphBase/J3DTexture.h
+++ b/include/JSystem/J3DGraphBase/J3DTexture.h
@@ -96,6 +96,11 @@ struct J3DTexCoord : public J3DTexCoordInfo {
u8 getTexGenMtx() { return mTexGenMtx & 0xff; }
u16 getTexMtxReg() { return mTexMtxReg & 0xff; }
void setTexGenMtx(u8 param_1) { mTexGenMtx = param_1; }
+ J3DTexCoord& operator=(const J3DTexCoord& other) {
+ // Fake match (__memcpy or = doesn't match)
+ *(u32*)this = *(u32*)&other;
+ return *this;
+ }
void resetTexMtxReg() {
mTexMtxReg = mTexGenMtx;