Browse Source

gl-info: avoid trailing spaces in --limit output.

Highly unprofessional.
pull/610/head
Vladimír Vondruš 4 years ago
parent
commit
75bc0be4be
  1. 4
      src/Magnum/Platform/gl-info.cpp

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

@ -457,8 +457,8 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
/* Limits and implementation-defined values */
#define _h(val) Debug{} << "\n " << GL::Extensions::val::string() << Debug::nospace << ":";
#define _l(val) Debug{} << " " << #val << (sizeof(#val) > 64 ? NewlineAndManySpaces.slice(0, 69) : NewlineAndManySpaces.slice(1, 65 - sizeof(#val))) << val;
#define _lvec(val) Debug{} << " " << #val << (sizeof(#val) > 42 ? NewlineAndManySpaces.slice(0, 47) : NewlineAndManySpaces.slice(1, 43 - sizeof(#val))) << val;
#define _l(val) Debug{} << " " << #val << Debug::nospace << (sizeof(#val) > 64 ? NewlineAndManySpaces.slice(0, 69) : NewlineAndManySpaces.slice(1, 66 - sizeof(#val))) << val;
#define _lvec(val) Debug{} << " " << #val << Debug::nospace << (sizeof(#val) > 42 ? NewlineAndManySpaces.slice(0, 47) : NewlineAndManySpaces.slice(1, 44 - sizeof(#val))) << val;
Debug{} << "Limits and implementation-defined values:";
_lvec(GL::AbstractFramebuffer::maxViewportSize())

Loading…
Cancel
Save