From c7d0f86280febd9e633f7767dba092a56f3d381b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 4 Sep 2023 11:37:43 +0200 Subject: [PATCH] Platform: drop another compatibility branch for old Emscripten. --- src/Magnum/Platform/EmscriptenApplication.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Magnum/Platform/EmscriptenApplication.cpp b/src/Magnum/Platform/EmscriptenApplication.cpp index 1b42328a7..2ddbc2129 100644 --- a/src/Magnum/Platform/EmscriptenApplication.cpp +++ b/src/Magnum/Platform/EmscriptenApplication.cpp @@ -341,16 +341,9 @@ bool EmscriptenApplication::tryCreate(const Configuration& configuration, const !!(glConfiguration.flags() & GLConfiguration::Flag::PremultipliedAlpha); attrs.preserveDrawingBuffer = !!(glConfiguration.flags() & GLConfiguration::Flag::PreserveDrawingBuffer); - /* powerPreference replaced preferLowPowerToHighPerformance in emscripten - version 1.38.26 */ - #ifdef EM_WEBGL_POWER_PREFERENCE_LOW_POWER attrs.powerPreference = !!(glConfiguration.flags() & GLConfiguration::Flag::PreferLowPowerToHighPerformance) ? EM_WEBGL_POWER_PREFERENCE_LOW_POWER : EM_WEBGL_POWER_PREFERENCE_HIGH_PERFORMANCE; - #else - attrs.preferLowPowerToHighPerformance = - !!(glConfiguration.flags() & GLConfiguration::Flag::PreferLowPowerToHighPerformance); - #endif attrs.explicitSwapControl = !!(glConfiguration.flags() & GLConfiguration::Flag::ExplicitSwapControl); attrs.failIfMajorPerformanceCaveat =