aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/scenegraph/util/qsgflatcolormaterial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/scenegraph/util/qsgflatcolormaterial.cpp')
-rw-r--r--src/declarative/scenegraph/util/qsgflatcolormaterial.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/declarative/scenegraph/util/qsgflatcolormaterial.cpp b/src/declarative/scenegraph/util/qsgflatcolormaterial.cpp
index d954f196ab..affdcadd3b 100644
--- a/src/declarative/scenegraph/util/qsgflatcolormaterial.cpp
+++ b/src/declarative/scenegraph/util/qsgflatcolormaterial.cpp
@@ -41,7 +41,7 @@
#include "qsgflatcolormaterial.h"
-#include <qglshaderprogram.h>
+#include <qopenglshaderprogram.h>
QT_BEGIN_NAMESPACE
@@ -189,4 +189,12 @@ QSGMaterialShader *QSGFlatColorMaterial::createShader() const
return new FlatColorMaterialShader;
}
+
+int QSGFlatColorMaterial::compare(const QSGMaterial *other) const
+{
+ const QSGFlatColorMaterial *flat = static_cast<const QSGFlatColorMaterial *>(other);
+ return m_color.rgba() - flat->color().rgba();
+
+}
+
QT_END_NAMESPACE