diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-10-07 12:21:04 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-12 04:35:14 +0000 |
commit | 8890e05c45575f43e2fef5ac09efee3d05a34a60 (patch) | |
tree | 39e4a9ca53c28024f32799863a296914062cac87 /src/compositor | |
parent | 2cb631894332eff4604cbb031d77a4fedd461148 (diff) | |
download | qtwayland-8890e05c45575f43e2fef5ac09efee3d05a34a60.tar.gz |
Adapt to platform API rename
Fixes: QTBUG-87313
Change-Id: I99c0b08d908cffe271b555e0696af5fba3fb8780
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/compositor')
-rw-r--r-- | src/compositor/compositor_api/qwaylandquickitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/compositor_api/qwaylandquickitem.cpp b/src/compositor/compositor_api/qwaylandquickitem.cpp index 9aded1c9..891823c6 100644 --- a/src/compositor/compositor_api/qwaylandquickitem.cpp +++ b/src/compositor/compositor_api/qwaylandquickitem.cpp @@ -312,7 +312,7 @@ public: auto texture = buffer.toOpenGLTexture(); GLuint textureId = texture->textureId(); auto size = surface->bufferSize(); - m_sgTex = QPlatformInterface::QSGOpenGLTexture::fromNative(textureId, surfaceItem->window(), size, opt); + m_sgTex = QNativeInterface::QSGOpenGLTexture::fromNative(textureId, surfaceItem->window(), size, opt); #else qCWarning(qLcWaylandCompositor) << "Without OpenGL support only shared memory textures are supported"; #endif @@ -1394,7 +1394,7 @@ QSGNode *QWaylandQuickItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeDat QWaylandQuickSurface *waylandSurface = qobject_cast<QWaylandQuickSurface *>(surface()); if (waylandSurface != nullptr && waylandSurface->useTextureAlpha()) opt |= QQuickWindow::TextureHasAlphaChannel; - QSGTexture *scenegraphTexture = QPlatformInterface::QSGOpenGLTexture::fromNative(texture->textureId(), + QSGTexture *scenegraphTexture = QNativeInterface::QSGOpenGLTexture::fromNative(texture->textureId(), window(), ref.size(), opt); |