diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2019-04-29 09:52:55 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2019-05-14 11:00:26 +0000 |
commit | 1c7b5c20a5f1c2fabf9df7ee636014f5ba0ab114 (patch) | |
tree | f6a0db180647a96b22c468f804aa25bf9bfe0ff1 | |
parent | 77216c5c5295a38cc432135e31529335c18c5a4b (diff) |
QOpenGLWindow: set QOffScreenSurface screen
Required by QWasmOpenGLContext.
Task-number: QTBUG-75463
Change-Id: Ie3cb80b50d7c909e6f46a6dec19644bf27cd41e7
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
-rw-r--r-- | src/gui/kernel/qopenglwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qopenglwindow.cpp b/src/gui/kernel/qopenglwindow.cpp index 8b052d92ae..022a47c919 100644 --- a/src/gui/kernel/qopenglwindow.cpp +++ b/src/gui/kernel/qopenglwindow.cpp @@ -440,7 +440,7 @@ void QOpenGLWindow::makeCurrent() d->context->makeCurrent(this); } else { if (!d->offscreenSurface) { - d->offscreenSurface.reset(new QOffscreenSurface); + d->offscreenSurface.reset(new QOffscreenSurface(screen())); d->offscreenSurface->setFormat(d->context->format()); d->offscreenSurface->create(); } |