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:
parent
7cec37572a
commit
739382a1bf
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user