]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/depthtest.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / core / depthtest.h
index e6f1349a7816ff20594cfb22a4c1017a93d1f193..76602269a137848fc7a3b5cc6f84199c28d6358e 100644 (file)
@@ -28,8 +28,16 @@ struct DepthTest
 
        DepthTest() = default;
        DepthTest(Predicate, bool = true);
+
+       bool operator==(const DepthTest &) const;
+       bool operator!=(const DepthTest &d) const { return !operator==(d); }
 };
 
+inline bool DepthTest::operator==(const DepthTest &other) const
+{
+       return enabled==other.enabled && compare==other.compare && write==other.write;
+}
+
 } // namespace GL
 } // namespace Msp