aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickframebufferobject.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-06-29 16:09:46 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-08-03 16:32:30 +0200
commitfb96109bbc2ec5d83171a70d6c164d79695d2ddd (patch)
treeba31b5ab614cd57695b43860ddae3eae6e508a54 /src/quick/items/qquickframebufferobject.cpp
parent6826b2decc21cbf390076efa3a0d6c412563f94a (diff)
Add type safe native texture accessors
Following the pattern from QtGui. Task-number: QTBUG-85239 Change-Id: I07b4456028d0f45223ad10e55ce65f423bab6a9b Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/quick/items/qquickframebufferobject.cpp')
-rw-r--r--src/quick/items/qquickframebufferobject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quick/items/qquickframebufferobject.cpp b/src/quick/items/qquickframebufferobject.cpp
index 03de94756d..b2bd8dfc6b 100644
--- a/src/quick/items/qquickframebufferobject.cpp
+++ b/src/quick/items/qquickframebufferobject.cpp
@@ -346,10 +346,10 @@ QSGNode *QQuickFramebufferObject::updatePaintNode(QSGNode *node, UpdatePaintNode
displayTexture = n->msDisplayFbo->texture();
}
- QSGTexture *wrapper = window()->createTextureFromNativeObject(QQuickWindow::NativeObjectTexture,
- displayTexture, 0,
- n->fbo->size(),
- QQuickWindow::TextureHasAlphaChannel);
+ QSGTexture *wrapper = QPlatformInterface::QSGOpenGLTexture::fromNative(displayTexture,
+ window(),
+ n->fbo->size(),
+ QQuickWindow::TextureHasAlphaChannel);
n->setTexture(wrapper);
}