diff --git a/src/Magnum/Renderer.cpp b/src/Magnum/Renderer.cpp index 2020d6775..e35a83c7f 100644 --- a/src/Magnum/Renderer.cpp +++ b/src/Magnum/Renderer.cpp @@ -28,6 +28,7 @@ #include "Magnum/Math/Range.h" #include "Magnum/Color.h" #include "Magnum/Context.h" +#include "Magnum/Extensions.h" #include "Implementation/State.h" #include "Implementation/RendererState.h" @@ -159,6 +160,13 @@ void Renderer::setLogicOperation(const LogicOperation operation) { #endif Renderer::ResetNotificationStrategy Renderer::resetNotificationStrategy() { + #ifndef MAGNUM_TARGET_GLES + if(!Context::current()->isExtensionSupported()) + #else + if(!Context::current()->isExtensionSupported()) + #endif + return ResetNotificationStrategy::NoResetNotification; + ResetNotificationStrategy& strategy = Context::current()->state().renderer->resetNotificationStrategy; if(strategy == ResetNotificationStrategy()) {