diff options
| author | Techjar <tecknojar@gmail.com> | 2019-05-30 15:56:47 -0400 |
|---|---|---|
| committer | Techjar <tecknojar@gmail.com> | 2019-05-30 16:00:46 -0400 |
| commit | cd3ba570dff5ed2ea2c6a95fe72ea0680b24139f (patch) | |
| tree | fe6b2e9571e946eee096f374cfd01605cb3cf879 /Source/Core | |
| parent | 00ecfb3c598ec08e5863db9c697e91ab5a4965bf (diff) | |
VideoCommon/ShaderGenCommon: Fix memcmp size in ShaderUid operators
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderGenCommon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.h b/Source/Core/VideoCommon/ShaderGenCommon.h index de6e74e8d3..12fa76fb72 100644 --- a/Source/Core/VideoCommon/ShaderGenCommon.h +++ b/Source/Core/VideoCommon/ShaderGenCommon.h @@ -69,7 +69,7 @@ public: bool operator==(const ShaderUid& obj) const { - return memcmp(&data, &obj.data, data.NumValues() * sizeof(data)) == 0; + return memcmp(GetUidData(), obj.GetUidData(), GetUidDataSize()) == 0; } bool operator!=(const ShaderUid& obj) const { return !operator==(obj); } @@ -77,7 +77,7 @@ public: // determines the storage order inside STL containers bool operator<(const ShaderUid& obj) const { - return memcmp(&data, &obj.data, data.NumValues() * sizeof(data)) < 0; + return memcmp(GetUidData(), obj.GetUidData(), GetUidDataSize()) < 0; } // Returns a pointer to an internally stored object of the uid_data type. |
