diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-05-29 17:50:08 +0200 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-06-04 18:40:37 +0200 |
commit | c711b9f5899ac36417265adbfbf61415a2602989 (patch) | |
tree | 3593d5ee070866812a2732554b91e51afb0b9ee8 /src/qtmultimediaquicktools/qsgvideotexture.cpp | |
parent | cf815557eef1d1d34e20d13df24baae5e2f138ac (diff) |
Follow QRhi create-destroy API update
5697799 in qtbase changes build() to create(). Follow these changes.
Change-Id: Icad272f8d3280c15ac4d8a635af90b4bf1fd1437
Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
Diffstat (limited to 'src/qtmultimediaquicktools/qsgvideotexture.cpp')
-rw-r--r-- | src/qtmultimediaquicktools/qsgvideotexture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qtmultimediaquicktools/qsgvideotexture.cpp b/src/qtmultimediaquicktools/qsgvideotexture.cpp index 22f9fdbee..0723543ed 100644 --- a/src/qtmultimediaquicktools/qsgvideotexture.cpp +++ b/src/qtmultimediaquicktools/qsgvideotexture.cpp @@ -149,8 +149,8 @@ void QSGVideoTexturePrivate::updateRhiTexture(QRhi *rhi, QRhiResourceUpdateBatch if (needsRebuild) { m_texture->setPixelSize(m_size); bool created = m_nativeObject - ? m_texture->buildFrom({m_nativeObject, 0}) - : m_texture->build(); + ? m_texture->createFrom({m_nativeObject, 0}) + : m_texture->create(); if (!created) { qWarning("Failed to build texture (size %dx%d)", m_size.width(), m_size.height()); |