mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
ShaderGen: Use u8 as uid storage base type. Fixes an off-by-one error introduced in revision bdc28106ee
that caused some lighting issues.
This commit is contained in:
@ -120,7 +120,7 @@ private:
|
||||
union
|
||||
{
|
||||
uid_data data;
|
||||
u32 values[sizeof(uid_data) / sizeof(u32)];
|
||||
u8 values[sizeof(uid_data)];
|
||||
};
|
||||
};
|
||||
|
||||
@ -212,7 +212,7 @@ struct LightingUidData
|
||||
u32 attnfunc : 8; // 4x2 bits
|
||||
u32 light_mask : 32; // 4x8 bits
|
||||
|
||||
u32 NumValues() const { return sizeof(LightingUidData) / sizeof(u32); }
|
||||
u32 NumValues() const { return sizeof(LightingUidData); }
|
||||
};
|
||||
#pragma pack()
|
||||
|
||||
|
Reference in New Issue
Block a user