diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-08-30 11:10:08 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-09-04 11:00:14 +0000 |
commit | ac080cda6d9391663f882a4317be78ad89986ee2 (patch) | |
tree | d6f8dc1a91b240ea03f36f3137cdb55486083d4c /src/quick/scenegraph/qsgwindowsrenderloop_p.h | |
parent | d031e8f7b51a28a9c609f40a6245657f303277f2 (diff) |
Make releaseResources() free the renderer's shader cache
Normally all shader programs from materials are cached in a simple table
that is alive as long as the renderer exists, in practice this means being
tied to the QQuickWindow which is often the entire lifetime of an
application.
Use releaseResources(), which is mostly a no-op on the scenegraph level
at the moment, to free this cache.
Task-number: QTBUG-62392
Change-Id: I279e595874fee1ab4fe0dede0843a3686dea5806
Reviewed-by: Gunnar Sletta <gunnar@crimson.no>
Diffstat (limited to 'src/quick/scenegraph/qsgwindowsrenderloop_p.h')
-rw-r--r-- | src/quick/scenegraph/qsgwindowsrenderloop_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgwindowsrenderloop_p.h b/src/quick/scenegraph/qsgwindowsrenderloop_p.h index 1940a66af2..a1188fed8a 100644 --- a/src/quick/scenegraph/qsgwindowsrenderloop_p.h +++ b/src/quick/scenegraph/qsgwindowsrenderloop_p.h @@ -86,7 +86,7 @@ public: QSGContext *sceneGraphContext() const override { return m_sg; } QSGRenderContext *createRenderContext(QSGContext *) const override; - void releaseResources(QQuickWindow *) override { } + void releaseResources(QQuickWindow *) override; void render(); void renderWindow(QQuickWindow *window); |