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>
This commit is contained in:
Lorn Potter 2020-03-08 05:42:36 +10:00
parent 7cec37572a
commit 739382a1bf

View File

@ -88,7 +88,7 @@ EMSCRIPTEN_WEBGL_CONTEXT_HANDLE QWasmOpenGLContext::createEmscriptenContext(cons
EmscriptenWebGLContextAttributes attributes; EmscriptenWebGLContextAttributes attributes;
emscripten_webgl_init_context_attributes(&attributes); // Populate with default 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.failIfMajorPerformanceCaveat = false;
attributes.antialias = true; attributes.antialias = true;
attributes.enableExtensionsByDefault = true; attributes.enableExtensionsByDefault = true;