Fix size of U and V fields.

This commit is contained in:
Jean-Philip Desjardins 2017-05-13 22:04:11 -04:00
parent c95c02c2b9
commit 0712acdb3d

View File

@ -217,8 +217,8 @@ public:
uint16 nV;
uint32 nReserved;
float GetU() const { return static_cast<float>(nU & 0x7FFF) / 16.0f; }
float GetV() const { return static_cast<float>(nV & 0x7FFF) / 16.0f; }
float GetU() const { return static_cast<float>(nU & 0x3FFF) / 16.0f; }
float GetV() const { return static_cast<float>(nV & 0x3FFF) / 16.0f; }
};
static_assert(sizeof(UV) == sizeof(uint64), "Size of UV struct must be 8 bytes.");