From eb871ccce2b902a6a66d1c2f879b3e384daf7288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 16 Dec 2015 16:53:22 +0100 Subject: [PATCH] Don't display "Using driver workarounds" when there aren't any. --- src/Magnum/Context.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Context.cpp b/src/Magnum/Context.cpp index 66e27f928..5ff3ff755 100644 --- a/src/Magnum/Context.cpp +++ b/src/Magnum/Context.cpp @@ -654,9 +654,11 @@ bool Context::tryCreate() { _state = new Implementation::State(*this); /* Print a list of used workarounds */ - Debug() << "Using driver workarounds:"; - for(const auto& workaround: _driverWorkarounds) - if(!workaround.second) Debug() << " " << workaround.first; + if(!_driverWorkarounds.empty()) { + Debug() << "Using driver workarounds:"; + for(const auto& workaround: _driverWorkarounds) + if(!workaround.second) Debug() << " " << workaround.first; + } /* Initialize functionality based on current OpenGL version and extensions */ /** @todo Get rid of these */