mirror of
https://github.com/libretro/Play-.git
synced 2024-12-02 14:36:38 +00:00
Fix size of U and V fields.
This commit is contained in:
parent
c95c02c2b9
commit
0712acdb3d
@ -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.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user