From aa85f562d1984e849d97fd2f5c8a8cdab37415ce Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 28 Sep 2024 01:26:34 -0700 Subject: [PATCH] Disable notification and low-severity debug messages by default --- al/debug.cpp | 1 - alc/context.cpp | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/al/debug.cpp b/al/debug.cpp index e91dc29c21..bfe773bf4f 100644 --- a/al/debug.cpp +++ b/al/debug.cpp @@ -21,7 +21,6 @@ #include "alc/context.h" #include "alc/device.h" -#include "alc/inprogext.h" #include "alnumeric.h" #include "alspan.h" #include "alstring.h" diff --git a/alc/context.cpp b/alc/context.cpp index 29dea5e518..9c2183f5f6 100644 --- a/alc/context.cpp +++ b/alc/context.cpp @@ -124,6 +124,12 @@ ALCcontext::ALCcontext(al::intrusive_ptr device, ContextFlagBitset fl { mDebugGroups.emplace_back(DebugSource::Other, 0, std::string{}); mDebugEnabled.store(mContextFlags.test(ContextFlags::DebugBit), std::memory_order_relaxed); + + /* Notification and low-severity debug messages are disabled by default. */ + alDebugMessageControlDirectEXT(this, AL_DONT_CARE_EXT, AL_DONT_CARE_EXT, + AL_DEBUG_SEVERITY_NOTIFICATION_EXT, 0, nullptr, AL_FALSE); + alDebugMessageControlDirectEXT(this, AL_DONT_CARE_EXT, AL_DONT_CARE_EXT, + AL_DEBUG_SEVERITY_LOW_EXT, 0, nullptr, AL_FALSE); } ALCcontext::~ALCcontext()