summaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-07 12:32:04 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-09 09:03:20 +0200
commit43dbc7cbd14686d7a27e78b0a6c902be429d0f9a (patch)
treef1d8b46bd269a5d8bb4b68a070e263a6d9620d62 /examples/quick
parent352c1a3d4b0536dd04440512cd2502c3a55e8c0c (diff)
Adapt to platform API rename
Change-Id: I1f2171e18ec3df71f7eaec1be0e0e0d1442a3860 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm2
-rw-r--r--examples/quick/scenegraph/vulkantextureimport/vulkantextureimport.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm b/examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm
index a9b609f49f..9698b16f0b 100644
--- a/examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm
+++ b/examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm
@@ -263,7 +263,7 @@ void CustomTextureNode::sync()
m_texture = [m_device newTextureWithDescriptor: desc];
[desc release];
- QSGTexture *wrapper = QPlatformInterface::QSGMetalTexture::fromNative(m_texture, m_window, m_size);
+ QSGTexture *wrapper = QNativeInterface::QSGMetalTexture::fromNative(m_texture, m_window, m_size);
qDebug() << "Got QSGTexture wrapper" << wrapper << "for an MTLTexture of size" << m_size;
diff --git a/examples/quick/scenegraph/vulkantextureimport/vulkantextureimport.cpp b/examples/quick/scenegraph/vulkantextureimport/vulkantextureimport.cpp
index cb56f3aabf..26b75d54bb 100644
--- a/examples/quick/scenegraph/vulkantextureimport/vulkantextureimport.cpp
+++ b/examples/quick/scenegraph/vulkantextureimport/vulkantextureimport.cpp
@@ -716,12 +716,12 @@ void CustomTextureNode::sync()
delete texture();
freeTexture();
buildTexture(m_size);
- QSGTexture *wrapper = QPlatformInterface::QSGVulkanTexture::fromNative(m_texture,
+ QSGTexture *wrapper = QNativeInterface::QSGVulkanTexture::fromNative(m_texture,
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,
m_window,
m_size);
setTexture(wrapper);
- Q_ASSERT(wrapper->platformInterface<QPlatformInterface::QSGVulkanTexture>()->nativeImage() == m_texture);
+ Q_ASSERT(wrapper->nativeInterface<QNativeInterface::QSGVulkanTexture>()->nativeImage() == m_texture);
}
m_t = float(static_cast<CustomTextureItem *>(m_item)->t());