diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2018-07-05 16:33:39 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2018-08-31 19:33:17 +0000 |
commit | e59b32362805a39383e28f0003c43098d83164d9 (patch) | |
tree | a91d10f862e4e351e868b7f3f7077a341bd122a9 /src/plugins/platforms/wasm | |
parent | 2664e843223e558a781d00191b7dffd962aa5618 (diff) |
wasm: disable RasterGlSurface
QOpenGlWidget and QuickQidget do not work at this time anyway.
This also causes gl to be initialized for widget apps, so disabling this
will optimize widget apps.
We could use Qt::AA_ForceRasterWidgets as well.
Task-number: QTBUG-67797
Change-Id: I8f86a9f72e6f3d437a818b4fbe3d6f3658e17d04
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm')
-rw-r--r-- | src/plugins/platforms/wasm/qwasmintegration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmintegration.cpp b/src/plugins/platforms/wasm/qwasmintegration.cpp index accc1fd2fe..1be909f0a0 100644 --- a/src/plugins/platforms/wasm/qwasmintegration.cpp +++ b/src/plugins/platforms/wasm/qwasmintegration.cpp @@ -110,7 +110,7 @@ bool QWasmIntegration::hasCapability(QPlatformIntegration::Capability cap) const case ThreadedPixmaps: return true; case OpenGL: return true; case ThreadedOpenGL: return true; - case RasterGLSurface: return true; + case RasterGLSurface: return false; // to enable this you need to fix qopenglwidget and quickwidget for wasm case MultipleWindows: return true; case WindowManagement: return true; default: return QPlatformIntegration::hasCapability(cap); |