diff options
author | Chris Robinson <[email protected]> | 2023-08-11 02:10:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-08-11 02:10:26 -0700 |
commit | 09eff761b8c8a2da79b0083c86a304eb3643b396 (patch) | |
tree | 7408644f085ba7ccc6ca2f64d2f1959dbc4e1e08 /al/state.cpp | |
parent | 9296af5566afea4ba4cb78b374ef3ee0bf9bc04b (diff) |
Add AL_EXT_debug functions to set/get object names
Diffstat (limited to 'al/state.cpp')
-rw-r--r-- | al/state.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/al/state.cpp b/al/state.cpp index 5b0772c7..1c41d63c 100644 --- a/al/state.cpp +++ b/al/state.cpp @@ -152,6 +152,7 @@ enum PropertyValue : ALenum { MaxDebugMessageLength = AL_MAX_DEBUG_MESSAGE_LENGTH_EXT, MaxDebugLoggedMessages = AL_MAX_DEBUG_LOGGED_MESSAGES_EXT, MaxDebugGroupDepth = AL_MAX_DEBUG_GROUP_STACK_DEPTH_EXT, + MaxLabelLength = AL_MAX_LABEL_LENGTH_EXT, ContextFlags = AL_CONTEXT_FLAGS_EXT, #ifdef ALSOFT_EAX EaxRamSize = AL_EAX_RAM_SIZE, @@ -245,6 +246,10 @@ void GetValue(ALCcontext *context, ALenum pname, T *values) *values = cast_value(MaxDebugGroupDepth); return; + case AL_MAX_LABEL_LENGTH_EXT: + *values = cast_value(MaxObjectLabelLength); + return; + case AL_CONTEXT_FLAGS_EXT: *values = cast_value(context->mContextFlags.to_ulong()); return; |