aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/compressedtexture
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-05-27 17:54:41 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-02 10:38:03 +0200
commitf621603692ccc76c077ba3911048d823f80e4bd5 (patch)
tree841f78439dc7a262b3a1c9f5fdae7eb57d22b7b8 /src/quick/scenegraph/compressedtexture
parent3371e1844c4505ecf8dc2be823e13a2b689bf584 (diff)
Follow QRhi create-destroy API update
Change-Id: I0bc2cbce373febcb9073f15067eebbc1723462ba Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/quick/scenegraph/compressedtexture')
-rw-r--r--src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp2
-rw-r--r--src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp b/src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp
index 5afc681fa0..8084d5a128 100644
--- a/src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp
+++ b/src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture.cpp
@@ -91,7 +91,7 @@ bool Atlas::generateTexture()
if (!m_texture)
return false;
- if (!m_texture->build()) {
+ if (!m_texture->create()) {
delete m_texture;
m_texture = nullptr;
return false;
diff --git a/src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp b/src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp
index 5f00da48f2..c7176875d6 100644
--- a/src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp
+++ b/src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp
@@ -305,7 +305,7 @@ void QSGCompressedTexture::commitTextureOperations(QRhi *rhi, QRhiResourceUpdate
if (!m_texture) {
m_texture = rhi->newTexture(fmt.rhiFormat, m_size, 1, texFlags);
- if (!m_texture->build()) {
+ if (!m_texture->create()) {
qWarning("Failed to create QRhiTexture for compressed data");
delete m_texture;
m_texture = nullptr;