From ce588ea5a3c3ee6c7fce64ec501a03ebaca373d4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 3 May 2023 10:42:32 -0700 Subject: Implement a context debug flag Setting the debug flag at context creation enables more debug messages for the created context, and enables debug messages by default. --- alc/inprogext.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'alc/inprogext.h') diff --git a/alc/inprogext.h b/alc/inprogext.h index 9db3b65b..b39eaa58 100644 --- a/alc/inprogext.h +++ b/alc/inprogext.h @@ -54,8 +54,14 @@ AL_API void AL_APIENTRY alAuxiliaryEffectSlotStopvSOFT(ALsizei n, const ALuint * #define AL_STOP_SOURCES_ON_DISCONNECT_SOFT 0x19AB #endif -#ifndef AL_EXT_DEBUG -#define AL_EXT_DEBUG +#ifndef ALC_EXT_debug +#define ALC_EXT_debug +#define ALC_CONTEXT_FLAGS_EXT 0x19CE +#define ALC_CONTEXT_DEBUG_BIT_EXT 0x0001 +#endif + +#ifndef AL_EXT_debug +#define AL_EXT_debug #define AL_DONT_CARE_EXT 0x0002 #define AL_DEBUG_OUTPUT_EXT 0x19B2 #define AL_DEBUG_CALLBACK_FUNCTION_EXT 0x19B3 @@ -85,6 +91,7 @@ AL_API void AL_APIENTRY alAuxiliaryEffectSlotStopvSOFT(ALsizei n, const ALuint * #define AL_MAX_DEBUG_GROUP_STACK_DEPTH_EXT 0x19CB #define AL_STACK_OVERFLOW_EXT 0x19CC #define AL_STACK_UNDERFLOW_EXT 0x19CD +#define AL_CONTEXT_FLAGS_EXT 0x19CE typedef void (AL_APIENTRY*ALDEBUGPROCEXT)(ALenum source, ALenum type, ALuint id, ALenum severity, ALsizei length, const ALchar *message, void *userParam); typedef void (AL_APIENTRY*LPALDEBUGMESSAGECALLBACKEXT)(ALDEBUGPROCEXT callback, void *userParam); -- cgit v1.2.3