Browse Source

Print an error if the user tries to disable unknown workaround.

pull/132/head
Vladimír Vondruš 11 years ago
parent
commit
ea65ff39fb
  1. 5
      src/Magnum/Implementation/driverSpecific.cpp

5
src/Magnum/Implementation/driverSpecific.cpp

@ -132,7 +132,10 @@ auto Context::detectedDriver() -> DetectedDrivers {
void Context::disableDriverWorkaround(const std::string& workaround) {
/* Ignore unknown workarounds */
if(std::find(KnownWorkarounds.begin(), KnownWorkarounds.end(), workaround) == KnownWorkarounds.end()) return;
if(std::find(KnownWorkarounds.begin(), KnownWorkarounds.end(), workaround) == KnownWorkarounds.end()) {
Warning() << "Unknown workaround" << workaround;
return;
}
_driverWorkarounds.emplace_back(workaround, true);
}

Loading…
Cancel
Save