aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgdefaultrendercontext_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2016-06-21 14:44:41 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2016-06-22 08:54:45 +0000
commit1569f46bdcffc9b4af3eed295aa29fa85e33f60c (patch)
treef85883fb1e9378dffc705a03e5f35146ffd5df1b /src/quick/scenegraph/qsgdefaultrendercontext_p.h
parent7de18e6f52d6247bddd7bfabe0b2601d7db239b5 (diff)
Make QSGEngine::initialize backend-independent
Allow calling initialize(nullptr) regardless of which scenegraph backend is in use. Change-Id: Ie5965dcd12d423255d5eb85fed255107cac2acb9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultrendercontext_p.h')
-rw-r--r--src/quick/scenegraph/qsgdefaultrendercontext_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgdefaultrendercontext_p.h b/src/quick/scenegraph/qsgdefaultrendercontext_p.h
index bfb15b1eb9..c5e08c07f0 100644
--- a/src/quick/scenegraph/qsgdefaultrendercontext_p.h
+++ b/src/quick/scenegraph/qsgdefaultrendercontext_p.h
@@ -88,7 +88,7 @@ public:
virtual void compileShader(QSGMaterialShader *shader, QSGMaterial *material, const char *vertexCode = 0, const char *fragmentCode = 0);
virtual void initializeShader(QSGMaterialShader *shader);
- void setAttachToGLContext(bool attach);
+ void setAttachToGraphicsContext(bool attach) override;
static QSGDefaultRenderContext *from(QOpenGLContext *context);