Browse Source

gl-info: what, I'm still using std::vector here?!

pull/499/head
Vladimír Vondruš 3 years ago
parent
commit
b2f72c958b
  1. 4
      src/Magnum/Platform/gl-info.cpp

4
src/Magnum/Platform/gl-info.cpp

@ -397,7 +397,7 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
Debug{} << ""; Debug{} << "";
/* Get first future (not supported) version */ /* Get first future (not supported) version */
std::vector<GL::Version> versions{ GL::Version versions[]{
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
GL::Version::GL300, GL::Version::GL300,
GL::Version::GL310, GL::Version::GL310,
@ -431,7 +431,7 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
" "_s; " "_s;
/* Display supported OpenGL extensions from unsupported versions */ /* 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) if(versions[i] != GL::Version::None)
Debug{} << versions[i] << "extension support:"; Debug{} << versions[i] << "extension support:";
else Debug{} << "Vendor extension support:"; else Debug{} << "Vendor extension support:";

Loading…
Cancel
Save