From 927b75efaf14abb2e1276d2ef4a469c0b02febde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 3 Apr 2019 20:54:08 +0200 Subject: [PATCH] GL: this internal API always takes a C string anyway. --- src/Magnum/GL/Context.h | 2 +- src/Magnum/GL/Implementation/driverSpecific.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/GL/Context.h b/src/Magnum/GL/Context.h index be38c3be9..4f0a9ae8e 100644 --- a/src/Magnum/GL/Context.h +++ b/src/Magnum/GL/Context.h @@ -662,7 +662,7 @@ class MAGNUM_GL_EXPORT Context { #ifdef DOXYGEN_GENERATING_OUTPUT private: #endif - bool isDriverWorkaroundDisabled(const std::string& workaround); + bool isDriverWorkaroundDisabled(const char* workaround); Implementation::State& state() { return *_state; } /* This function is called from MeshState constructor, which means the diff --git a/src/Magnum/GL/Implementation/driverSpecific.cpp b/src/Magnum/GL/Implementation/driverSpecific.cpp index e7db5152e..098924e83 100644 --- a/src/Magnum/GL/Implementation/driverSpecific.cpp +++ b/src/Magnum/GL/Implementation/driverSpecific.cpp @@ -364,7 +364,7 @@ void Context::disableDriverWorkaround(const std::string& workaround) { _driverWorkarounds.emplace_back(workaround, true); } -bool Context::isDriverWorkaroundDisabled(const std::string& workaround) { +bool Context::isDriverWorkaroundDisabled(const char* workaround) { CORRADE_INTERNAL_ASSERT(std::find(KnownWorkarounds.begin(), KnownWorkarounds.end(), workaround) != KnownWorkarounds.end()); /* If the workaround was already asked for or disabled, return its state,