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>
This commit is contained in:
parent
2664e84322
commit
e59b323628
@ -110,7 +110,7 @@ bool QWasmIntegration::hasCapability(QPlatformIntegration::Capability cap) const
|
|||||||
case ThreadedPixmaps: return true;
|
case ThreadedPixmaps: return true;
|
||||||
case OpenGL: return true;
|
case OpenGL: return true;
|
||||||
case ThreadedOpenGL: 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 MultipleWindows: return true;
|
||||||
case WindowManagement: return true;
|
case WindowManagement: return true;
|
||||||
default: return QPlatformIntegration::hasCapability(cap);
|
default: return QPlatformIntegration::hasCapability(cap);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user