From a731e042cc512d1008415765ab8b4d8114f0399c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 1 Apr 2022 19:13:26 -0700 Subject: Remove the unused flags parameter from alBufferCallbackSOFT --- al/buffer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'al/buffer.cpp') diff --git a/al/buffer.cpp b/al/buffer.cpp index 7aa8edfd..13407103 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -1584,7 +1584,7 @@ END_API_FUNC AL_API void AL_APIENTRY alBufferCallbackSOFT(ALuint buffer, ALenum format, ALsizei freq, - ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr, ALbitfieldSOFT flags) + ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr) START_API_FUNC { ContextRef context{GetContextRef()}; @@ -1600,8 +1600,6 @@ START_API_FUNC context->setError(AL_INVALID_VALUE, "Invalid sample rate %d", freq); else if UNLIKELY(callback == nullptr) context->setError(AL_INVALID_VALUE, "NULL callback"); - else if UNLIKELY(flags != 0) - context->setError(AL_INVALID_VALUE, "Invalid callback flags 0x%x", flags); else { auto usrfmt = DecomposeUserFormat(format); -- cgit v1.2.3