aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/coreapi/qsgmaterialshader_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2014-07-03 12:15:46 +0200
committerGunnar Sletta <gunnar.sletta@jollamobile.com>2014-07-04 17:39:45 +0200
commit92658ebb755bda136a7e4fa455b8d116c2dd0c6f (patch)
tree60c346fa4921a8be7448f550ebda033c07e21d49 /src/quick/scenegraph/coreapi/qsgmaterialshader_p.h
parent48dcabdb6f30d5e0c05fc1e56bb4ed4e3a96514c (diff)
Verbose fatal instead of crash when the scene graph state is invalid.
Change-Id: I9a55bcbf9e94084c0cadac561e4707d47f5f8744 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgmaterialshader_p.h')
-rw-r--r--src/quick/scenegraph/coreapi/qsgmaterialshader_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgmaterialshader_p.h b/src/quick/scenegraph/coreapi/qsgmaterialshader_p.h
index fc8a35c41d..43b224f9f9 100644
--- a/src/quick/scenegraph/coreapi/qsgmaterialshader_p.h
+++ b/src/quick/scenegraph/coreapi/qsgmaterialshader_p.h
@@ -56,6 +56,11 @@ public:
mutable QHash<QOpenGLShader::ShaderType, QByteArray> m_sources;
};
+#ifndef QT_NO_DEBUG
+Q_QUICK_PRIVATE_EXPORT bool qsg_test_and_clear_material_failure();
+Q_QUICK_PRIVATE_EXPORT void qsg_set_material_failure();
+#endif
+
QT_END_NAMESPACE
#endif // QSGMATERIALSHADER_P_H