From d04a9c780c2d95cc21c859d79b753004b7988bb8 Mon Sep 17 00:00:00 2001 From: Squareys Date: Sat, 11 Apr 2020 12:58:34 +0200 Subject: [PATCH] Platform: Fix compilation of EmscriptenApplication on Emscripten 1.38.26+ Signed-off-by: Squareys --- src/Magnum/Platform/EmscriptenApplication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/EmscriptenApplication.cpp b/src/Magnum/Platform/EmscriptenApplication.cpp index 2f1c4c7c5..98bf14800 100644 --- a/src/Magnum/Platform/EmscriptenApplication.cpp +++ b/src/Magnum/Platform/EmscriptenApplication.cpp @@ -293,10 +293,10 @@ bool EmscriptenApplication::tryCreate(const Configuration& configuration, const !!(glConfiguration.flags() & GLConfiguration::Flag::PreserveDrawingBuffer); /* powerPreference replaced preferLowPowerToHighPerformance in emscripten version 1.38.26 */ - #ifdef EM_WEBGL_POWERPREFERENCE_LOW_POWER + #ifdef EM_WEBGL_POWER_PREFERENCE_LOW_POWER attrs.powerPreference = !!(glConfiguration.flags() & GLConfiguration::Flag::PreferLowPowerToHighPerformance) - ? EM_WEBGL_POWERPREFERENCE_LOW_POWER : EM_WEBGL_POWERPREFERENCE_HIGH_PERFORMANCE; + ? EM_WEBGL_POWER_PREFERENCE_LOW_POWER : EM_WEBGL_POWER_PREFERENCE_HIGH_PERFORMANCE; #else attrs.preferLowPowerToHighPerformance = !!(glConfiguration.flags() & GLConfiguration::Flag::PreferLowPowerToHighPerformance);