summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoCommon/ShaderGenCommon.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.h b/Source/Core/VideoCommon/ShaderGenCommon.h
index 137b0487dd..de6e74e8d3 100644
--- a/Source/Core/VideoCommon/ShaderGenCommon.h
+++ b/Source/Core/VideoCommon/ShaderGenCommon.h
@@ -72,10 +72,7 @@ public:
return memcmp(&data, &obj.data, data.NumValues() * sizeof(data)) == 0;
}
- bool operator!=(const ShaderUid& obj) const
- {
- return memcmp(&data, &obj.data, data.NumValues() * sizeof(data)) != 0;
- }
+ bool operator!=(const ShaderUid& obj) const { return !operator==(obj); }
// determines the storage order inside STL containers
bool operator<(const ShaderUid& obj) const