summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/angle/src/libANGLE/angletypes.inl
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/angle/src/libANGLE/angletypes.inl')
-rw-r--r--src/3rdparty/angle/src/libANGLE/angletypes.inl47
1 files changed, 2 insertions, 45 deletions
diff --git a/src/3rdparty/angle/src/libANGLE/angletypes.inl b/src/3rdparty/angle/src/libANGLE/angletypes.inl
index d51bcaaa78..3fbe0747d2 100644
--- a/src/3rdparty/angle/src/libANGLE/angletypes.inl
+++ b/src/3rdparty/angle/src/libANGLE/angletypes.inl
@@ -9,21 +9,6 @@
namespace gl
{
-template <typename T>
-bool operator==(const Color<T> &a, const Color<T> &b)
-{
- return a.red == b.red &&
- a.green == b.green &&
- a.blue == b.blue &&
- a.alpha == b.alpha;
-}
-
-template <typename T>
-bool operator!=(const Color<T> &a, const Color<T> &b)
-{
- return !(a == b);
-}
-
inline bool operator==(const Rectangle &a, const Rectangle &b)
{
return a.x == b.x &&
@@ -39,16 +24,7 @@ inline bool operator!=(const Rectangle &a, const Rectangle &b)
inline bool operator==(const SamplerState &a, const SamplerState &b)
{
- return a.minFilter == b.minFilter &&
- a.magFilter == b.magFilter &&
- a.wrapS == b.wrapS &&
- a.wrapT == b.wrapT &&
- a.wrapR == b.wrapR &&
- a.maxAnisotropy == b.maxAnisotropy &&
- a.minLod == b.minLod &&
- a.maxLod == b.maxLod &&
- a.compareMode == b.compareMode &&
- a.compareFunc == b.compareFunc;
+ return memcmp(&a, &b, sizeof(SamplerState)) == 0;
}
inline bool operator!=(const SamplerState &a, const SamplerState &b)
@@ -56,23 +32,4 @@ inline bool operator!=(const SamplerState &a, const SamplerState &b)
return !(a == b);
}
-inline bool operator==(const TextureState &a, const TextureState &b)
-{
- return a.swizzleRed == b.swizzleRed &&
- a.swizzleGreen == b.swizzleGreen &&
- a.swizzleBlue == b.swizzleBlue &&
- a.swizzleAlpha == b.swizzleAlpha &&
- a.samplerState == b.samplerState &&
- a.baseLevel == b.baseLevel &&
- a.maxLevel == b.maxLevel &&
- a.immutableFormat == b.immutableFormat &&
- a.immutableLevels == b.immutableLevels &&
- a.usage == b.usage;
-}
-
-inline bool operator!=(const TextureState &a, const TextureState &b)
-{
- return !(a == b);
-}
-
-}
+} // namespace gl