diff --git a/src/Magnum/GL/Context.cpp b/src/Magnum/GL/Context.cpp index b2542d3ee..49175e6cb 100644 --- a/src/Magnum/GL/Context.cpp +++ b/src/Magnum/GL/Context.cpp @@ -994,7 +994,7 @@ bool Context::tryCreate(const Configuration& configuration) { if(!_driverWorkarounds.isEmpty()) { Debug{output} << "Using driver workarounds:"; for(const auto& workaround: _driverWorkarounds) - if(!workaround.second) Debug(output) << " " << workaround.first; + if(!workaround.second()) Debug(output) << " " << workaround.first(); } /* Fetch default framebuffer size and set up default clear color. If we are diff --git a/src/Magnum/GL/Context.h b/src/Magnum/GL/Context.h index 22e844be2..8b1a543d4 100644 --- a/src/Magnum/GL/Context.h +++ b/src/Magnum/GL/Context.h @@ -915,7 +915,7 @@ class MAGNUM_GL_EXPORT Context { then can be discarded -- what to do? we could avoid including Array altogether */ /* True means known and disabled, false means known */ - Containers::Array> _driverWorkarounds; + Containers::Array> _driverWorkarounds; Containers::Array _disabledExtensions; Implementation::ContextConfigurationFlags _configurationFlags; }; diff --git a/src/Magnum/GL/Implementation/driverSpecific.cpp b/src/Magnum/GL/Implementation/driverSpecific.cpp index f3ad80a69..281b1b92d 100644 --- a/src/Magnum/GL/Implementation/driverSpecific.cpp +++ b/src/Magnum/GL/Implementation/driverSpecific.cpp @@ -24,6 +24,7 @@ */ #include +#include #include #include @@ -612,7 +613,7 @@ bool Context::isDriverWorkaroundDisabled(const Containers::StringView workaround compare just data pointers instead of the whole string as we store only the views in the KnownWorkarounds list. */ for(const auto& i: _driverWorkarounds) - if(i.first.data() == found.data()) return i.second; + if(i.first().data() == found.data()) return i.second(); arrayAppend(_driverWorkarounds, InPlaceInit, found, false); return false; }