From b2f72c958b98df9d6e0e42cbe8911ac66ed110d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 30 Dec 2022 21:37:45 +0100 Subject: [PATCH] gl-info: what, I'm still using std::vector here?! --- src/Magnum/Platform/gl-info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/gl-info.cpp b/src/Magnum/Platform/gl-info.cpp index 25619949f..3a231046f 100644 --- a/src/Magnum/Platform/gl-info.cpp +++ b/src/Magnum/Platform/gl-info.cpp @@ -397,7 +397,7 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat Debug{} << ""; /* Get first future (not supported) version */ - std::vector versions{ + GL::Version versions[]{ #ifndef MAGNUM_TARGET_GLES GL::Version::GL300, GL::Version::GL310, @@ -431,7 +431,7 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat " "_s; /* Display supported OpenGL extensions from unsupported versions */ - for(std::size_t i = future; i != versions.size(); ++i) { + for(std::size_t i = future; i != Containers::arraySize(versions); ++i) { if(versions[i] != GL::Version::None) Debug{} << versions[i] << "extension support:"; else Debug{} << "Vendor extension support:";