aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2021-10-14 11:03:31 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2021-11-02 12:59:12 +0200
commit8140078364e1e441437abfda11699473abc9034e (patch)
treedd6b1b19716e482527e303e3ac7632f0d884c718 /src/quick/scenegraph
parent3f0eb32ff7407fa4b96b4861c68561bee6101637 (diff)
sg: Drop internal pool allocs upon QQuickWindow::releaseResources
Task-number: QTBUG-93956 Change-Id: Iba89c491c2ce33ed2a51713f480b41bea1c82519 Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit 3ccf37ce966923b6b65499f1116ee1941a1f36f1)
Diffstat (limited to 'src/quick/scenegraph')
-rw-r--r--src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp b/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp
index fae9f78ddf..7d2129b247 100644
--- a/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp
+++ b/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp
@@ -1133,6 +1133,9 @@ void Renderer::releaseCachedResources()
if (m_rhi)
m_rhi->releaseCachedResources();
+
+ m_vertexUploadPool.shrink(0);
+ m_indexUploadPool.shrink(0);
}
void Renderer::invalidateAndRecycleBatch(Batch *b)