diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2020-03-08 05:42:36 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2020-03-12 12:33:11 +1000 |
commit | 739382a1bf2e5c8bd9b006d1f83d04a6add0eb3e (patch) | |
tree | 65aa6b99038956836b55ce46af93a55aef663930 /src/plugins/platforms | |
parent | 7cec37572a8231b53fc64254bc874de599bc3af5 (diff) |
wasm: fix emsdk 1.39.9 build
Change depreciated and removed preferLowPowerToHighPerformance to the new
powerPreference
Fixes: QTBUG-82730
Change-Id: I53e4e39626fce75897701b0134adadf00dac2dea
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/wasm/qwasmopenglcontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmopenglcontext.cpp b/src/plugins/platforms/wasm/qwasmopenglcontext.cpp index 4ddd56fd8c..fbf700518e 100644 --- a/src/plugins/platforms/wasm/qwasmopenglcontext.cpp +++ b/src/plugins/platforms/wasm/qwasmopenglcontext.cpp @@ -88,7 +88,7 @@ EMSCRIPTEN_WEBGL_CONTEXT_HANDLE QWasmOpenGLContext::createEmscriptenContext(cons EmscriptenWebGLContextAttributes attributes; emscripten_webgl_init_context_attributes(&attributes); // Populate with default attributes - attributes.preferLowPowerToHighPerformance = false; + attributes.powerPreference = EM_WEBGL_POWER_PREFERENCE_HIGH_PERFORMANCE; attributes.failIfMajorPerformanceCaveat = false; attributes.antialias = true; attributes.enableExtensionsByDefault = true; |