aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/coreapi/qsgmaterialshader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgmaterialshader.cpp')
-rw-r--r--src/quick/scenegraph/coreapi/qsgmaterialshader.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgmaterialshader.cpp b/src/quick/scenegraph/coreapi/qsgmaterialshader.cpp
index c19ecc4ad5..150e54db6d 100644
--- a/src/quick/scenegraph/coreapi/qsgmaterialshader.cpp
+++ b/src/quick/scenegraph/coreapi/qsgmaterialshader.cpp
@@ -408,6 +408,15 @@ void QSGMaterialShader::setFlag(Flags flags, bool on)
}
/*!
+ Sets the \a flags for this material shader.
+ */
+void QSGMaterialShader::setFlags(Flags flags)
+{
+ Q_D(QSGMaterialShader);
+ d->flags = flags;
+}
+
+/*!
This function is called by the scene graph to get the contents of the
shader program's uniform buffer updated. The implementation is not expected
to perform any real graphics operations, it is merely responsible for