diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-10-02 11:10:21 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-10-07 09:30:48 +0200 |
commit | 74c898d5f5891553500426592a16419bd83776da (patch) | |
tree | 5103af45b0a4621dc88db07ce5c3419e8b472c7e /src/quick/scenegraph/qsgrhitextureglyphcache.cpp | |
parent | ce94b847c87e2606c5f189d2ad3715c1d025b9cf (diff) |
Follow QRhi improvements and drop QVectors where applicable
Task-number: QTBUG-78883
Change-Id: Ifcf5af843b5101a35ecc762a6a3b0196b6d97782
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgrhitextureglyphcache.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgrhitextureglyphcache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgrhitextureglyphcache.cpp b/src/quick/scenegraph/qsgrhitextureglyphcache.cpp index 99761302e2..d0108bc56e 100644 --- a/src/quick/scenegraph/qsgrhitextureglyphcache.cpp +++ b/src/quick/scenegraph/qsgrhitextureglyphcache.cpp @@ -223,7 +223,9 @@ void QSGRhiTextureGlyphCache::endFillTexture() if (!m_resourceUpdates) m_resourceUpdates = m_rhi->nextResourceUpdateBatch(); - m_resourceUpdates->uploadTexture(m_texture, m_uploads); + QRhiTextureUploadDescription desc; + desc.setEntries(m_uploads.cbegin(), m_uploads.cend()); + m_resourceUpdates->uploadTexture(m_texture, desc); m_uploads.clear(); } |