From 1569f46bdcffc9b4af3eed295aa29fa85e33f60c Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 21 Jun 2016 14:44:41 +0200 Subject: 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 --- src/quick/scenegraph/qsgcontext_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/quick/scenegraph/qsgcontext_p.h') diff --git a/src/quick/scenegraph/qsgcontext_p.h b/src/quick/scenegraph/qsgcontext_p.h index 2fef0ff1e8..2527be0480 100644 --- a/src/quick/scenegraph/qsgcontext_p.h +++ b/src/quick/scenegraph/qsgcontext_p.h @@ -122,6 +122,8 @@ public: virtual QSGTexture *createTexture(const QImage &image, uint flags = CreateTexture_Alpha) const = 0; virtual QSGRenderer *createRenderer() = 0; + virtual void setAttachToGraphicsContext(bool attach) { Q_UNUSED(attach); } + void registerFontengineForCleanup(QFontEngine *engine); Q_SIGNALS: -- cgit v1.2.3