aboutsummaryrefslogtreecommitdiffstats
path: root/softwarecontext/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'softwarecontext/context.h')
-rw-r--r--softwarecontext/context.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/softwarecontext/context.h b/softwarecontext/context.h
index c2aba27db4..0a64ca0a06 100644
--- a/softwarecontext/context.h
+++ b/softwarecontext/context.h
@@ -41,8 +41,10 @@ public:
void nodeChanged(QSGNode *node, QSGNode::DirtyState state);
+ QBackingStore *backingStore() const { return m_backingStore.data(); }
+
private:
- QScopedPointer<QBackingStore> backingStore;
+ QScopedPointer<QBackingStore> m_backingStore;
QRect m_dirtyRect;
};
@@ -63,6 +65,7 @@ class RenderContext : public QSGRenderContext
public:
RenderContext(QSGContext *ctx);
void initialize(QOpenGLContext *context);
+ void initializeIfNeeded();
void invalidate();
void renderNextFrame(QSGRenderer *renderer, GLuint fbo);
QSGTexture *createTexture(const QImage &image) const;
@@ -70,6 +73,7 @@ public:
QSGRenderer *createRenderer();
QWindow *currentWindow;
+ bool m_initialized;
};
class Context : public QSGContext