diff --git a/src/Magnum/Platform/WindowlessEglApplication.cpp b/src/Magnum/Platform/WindowlessEglApplication.cpp index bd2a1622c..01a2a0307 100644 --- a/src/Magnum/Platform/WindowlessEglApplication.cpp +++ b/src/Magnum/Platform/WindowlessEglApplication.cpp @@ -73,8 +73,6 @@ namespace Magnum { namespace Platform { #ifndef MAGNUM_TARGET_WEBGL namespace { -static constexpr UnsignedInt MaxEGLDevices = 128; - bool extensionSupported(const char* const extensions, Containers::ArrayView extension) { CORRADE_INTERNAL_ASSERT(extensions); const char* pos = std::strstr(extensions, extension); @@ -170,7 +168,7 @@ WindowlessEglContext::WindowlessEglContext(const Configuration& configuration, G return; } - devices = Containers::Array{MaxEGLDevices}; + devices = Containers::Array{std::size_t(count)}; /* Assuming the same thing won't suddenly start failing when called the second time */ CORRADE_INTERNAL_ASSERT_OUTPUT(eglQueryDevices(devices.size(), devices, &count));