From 786a05876e492074aba245209d11fb73d05ad60a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 24 Jan 2018 12:10:48 -0800 Subject: Call the event callback when an error is generated Most errors don't yet provide correct object IDs or text messages for the AL error. --- OpenAL32/Include/alError.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alError.h b/OpenAL32/Include/alError.h index ab91d27b..f94802b3 100644 --- a/OpenAL32/Include/alError.h +++ b/OpenAL32/Include/alError.h @@ -9,20 +9,20 @@ extern "C" { extern ALboolean TrapALError; -ALvoid alSetError(ALCcontext *Context, ALenum errorCode); +ALvoid alSetError(ALCcontext *context, ALenum errorCode, ALuint objid, const char *msg); #define SET_ERROR_AND_RETURN(ctx, err) do { \ - alSetError((ctx), (err)); \ + alSetError((ctx), (err), 0, "Unimplemented message"); \ return; \ } while(0) #define SET_ERROR_AND_RETURN_VALUE(ctx, err, val) do { \ - alSetError((ctx), (err)); \ + alSetError((ctx), (err), 0, "Unimplemented message"); \ return (val); \ } while(0) #define SET_ERROR_AND_GOTO(ctx, err, lbl) do { \ - alSetError((ctx), (err)); \ + alSetError((ctx), (err), 0, "Unimplemented message"); \ goto lbl; \ } while(0) -- cgit v1.2.3