Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10755 from tellowkrinkle/DebugUID
VideoCommon: Don't add garbage to shader uids in debug builds
  • Loading branch information
delroth committed Jun 22, 2022
2 parents dc61f87 + 3fe1a1a commit 6ddff87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/VideoCommon/ShaderGenCommon.h
Expand Up @@ -71,6 +71,8 @@ class ShaderUid : public ShaderGeneratorInterface
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;
Expand Down

0 comments on commit 6ddff87

Please sign in to comment.