mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Merge pull request #10755 from tellowkrinkle/DebugUID
VideoCommon: Don't add garbage to shader uids in debug builds
This commit is contained in:
commit
6ddff87d42
@ -71,6 +71,8 @@ public:
|
||||
static_assert(std::is_trivially_copyable_v<uid_data>,
|
||||
"uid_data must be a trivially copyable type");
|
||||
|
||||
ShaderUid() { memset(GetUidData(), 0, GetUidDataSize()); }
|
||||
|
||||
bool operator==(const ShaderUid& obj) const
|
||||
{
|
||||
return memcmp(GetUidData(), obj.GetUidData(), GetUidDataSize()) == 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user