diff options
| author | Lorn Potter <lorn.potter@gmail.com> | 2023-02-13 17:40:41 +1000 |
|---|---|---|
| committer | Lorn Potter <lorn.potter@gmail.com> | 2024-02-21 04:23:32 +1000 |
| commit | ee25bde3edf08e27efbb9619683ffb5517115817 (patch) | |
| tree | 3647f87e9310ec6de34b4d5a0a311f6f29fcf21f /src/plugins/platforms/wasm/qwasmopenglcontext.h | |
| parent | 08b8f9dd2f3e792a6fb43b7e065a7123dff74313 (diff) | |
wasm: make opengles3 (webgl2) default surface format
All major browsers support webgl2 out of the box.
[ChangeLog][WebAssmebly] Default OpenGL ES version raised to 3.0
Fixes: QTBUG-110686
Pick-to: 6.7
Change-Id: I875b55c2e0f6e955249f121d92214cf10ed416d7
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmopenglcontext.h')
| -rw-r--r-- | src/plugins/platforms/wasm/qwasmopenglcontext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmopenglcontext.h b/src/plugins/platforms/wasm/qwasmopenglcontext.h index 022d6692151..2a8bcc5d9bd 100644 --- a/src/plugins/platforms/wasm/qwasmopenglcontext.h +++ b/src/plugins/platforms/wasm/qwasmopenglcontext.h @@ -43,7 +43,7 @@ private: static void destroyWebGLContext(EMSCRIPTEN_WEBGL_CONTEXT_HANDLE contextHandle); - QSurfaceFormat m_requestedFormat; + QSurfaceFormat m_actualFormat; QOpenGLContext *m_qGlContext; QOpenGLContextData m_ownedWebGLContext; EMSCRIPTEN_WEBGL_CONTEXT_HANDLE m_usedWebGLContextHandle = 0; |
