diff options
author | Chris Robinson <[email protected]> | 2023-05-03 10:42:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-05-03 12:18:42 -0700 |
commit | ce588ea5a3c3ee6c7fce64ec501a03ebaca373d4 (patch) | |
tree | 56bdc75dc41cc4d59b88f086c974bd7a648dbc2a /alc/inprogext.h | |
parent | 90b0840d62a123e946e81f514bbe331897da8838 (diff) |
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.
Diffstat (limited to 'alc/inprogext.h')
-rw-r--r-- | alc/inprogext.h | 11 |
1 files changed, 9 insertions, 2 deletions
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); |