diff options
Diffstat (limited to 'al')
-rw-r--r-- | al/debug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/al/debug.cpp b/al/debug.cpp index 98c5a0b5..81e9b35f 100644 --- a/al/debug.cpp +++ b/al/debug.cpp @@ -171,9 +171,9 @@ FORCE_ALIGN void AL_APIENTRY alDebugMessageControlSOFT(ALenum source, ALenum typ { auto iter = std::lower_bound(context->mDebugFilters.cbegin(), context->mDebugFilters.cend(), filter); - if(enable && (iter == context->mDebugFilters.cend() || *iter != filter)) + if(!enable && (iter == context->mDebugFilters.cend() || *iter != filter)) context->mDebugFilters.insert(iter, filter); - else if(!enable && iter != context->mDebugFilters.cend() && *iter == filter) + else if(enable && iter != context->mDebugFilters.cend() && *iter == filter) context->mDebugFilters.erase(iter); }; auto apply_severity = [apply_filter,svrIndices](const uint filter) |