diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-26 17:18:37 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-26 21:08:06 +0200 |
commit | ccb9eb0cc17c689f6be61e83d2d9fb5724a6338d (patch) | |
tree | b68f89d1bdf582b5dd89259b2b1da5dd43cb1b0b /src/quickwidgets | |
parent | e79281533d61dda90d1c5995345a66e6089c7501 (diff) |
Follow QQuickGraphicsDevice changes in QQuickRenderTarget
They are not strictly related of course, but the API pattern should be
kept. We can also move away from the QSGTexture dependency which is good
since that was never directly related.
Change-Id: I9aedff5918443bda3d6e3ee1ea389071222d1ad7
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quickwidgets')
-rw-r--r-- | src/quickwidgets/qquickwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickwidgets/qquickwidget.cpp b/src/quickwidgets/qquickwidget.cpp index 04c321d0a5..ed0210629d 100644 --- a/src/quickwidgets/qquickwidget.cpp +++ b/src/quickwidgets/qquickwidget.cpp @@ -1077,7 +1077,7 @@ void QQuickWidget::createFramebufferObject() #endif GLuint textureId = d->fbo->texture(); - d->offscreenWindow->setRenderTarget( QQuickRenderTarget::fromNativeTexture({ textureId, 0 }, fboSize, samples)); + d->offscreenWindow->setRenderTarget( QQuickRenderTarget::fromOpenGLTexture(textureId, fboSize, samples)); d->renderControl->setSamples(samples); |