Browse Source

Platform: Fix compilation of EmscriptenApplication on Emscripten 1.38.26+

Signed-off-by: Squareys <squareys@googlemail.com>
pull/434/head
Squareys 6 years ago
parent
commit
d04a9c780c
  1. 4
      src/Magnum/Platform/EmscriptenApplication.cpp

4
src/Magnum/Platform/EmscriptenApplication.cpp

@ -293,10 +293,10 @@ bool EmscriptenApplication::tryCreate(const Configuration& configuration, const
!!(glConfiguration.flags() & GLConfiguration::Flag::PreserveDrawingBuffer); !!(glConfiguration.flags() & GLConfiguration::Flag::PreserveDrawingBuffer);
/* powerPreference replaced preferLowPowerToHighPerformance in emscripten /* powerPreference replaced preferLowPowerToHighPerformance in emscripten
version 1.38.26 */ version 1.38.26 */
#ifdef EM_WEBGL_POWERPREFERENCE_LOW_POWER #ifdef EM_WEBGL_POWER_PREFERENCE_LOW_POWER
attrs.powerPreference = attrs.powerPreference =
!!(glConfiguration.flags() & GLConfiguration::Flag::PreferLowPowerToHighPerformance) !!(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 #else
attrs.preferLowPowerToHighPerformance = attrs.preferLowPowerToHighPerformance =
!!(glConfiguration.flags() & GLConfiguration::Flag::PreferLowPowerToHighPerformance); !!(glConfiguration.flags() & GLConfiguration::Flag::PreferLowPowerToHighPerformance);

Loading…
Cancel
Save