From: Chris Robinson Date: Wed, 5 Dec 2012 16:29:38 +0000 (-0800) Subject: Print an error if trying to handle a missed source property X-Git-Tag: openal-soft-1.15.1~9 X-Git-Url: https://repo.or.cz/w/openal-soft.git/commitdiff_plain/3b9b176f144ecae9ffa63e8db3a9dfe04d00853a Print an error if trying to handle a missed source property --- diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index fe7aa6f3..22686a03 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -235,6 +235,7 @@ static ALenum SetSourcefv(ALsource *Source, ALCcontext *Context, ALenum name, co break; default: + ERR("Unexpected param: 0x%04x\n", name); RETERR(AL_INVALID_ENUM); } @@ -464,6 +465,7 @@ static ALenum SetSourceiv(ALsource *Source, ALCcontext *Context, ALenum name, co break; default: + ERR("Unexpected param: 0x%04x\n", name); RETERR(AL_INVALID_ENUM); } @@ -548,6 +550,7 @@ static ALenum SetSourcei64v(ALsource *Source, ALCcontext *Context, ALenum name, break; default: + ERR("Unexpected param: 0x%04x\n", name); RETERR(AL_INVALID_ENUM); } @@ -692,6 +695,7 @@ static ALenum GetSourcedv(const ALsource *Source, ALCcontext *Context, ALenum na break; default: + ERR("Unexpected param: 0x%04x\n", name); RETERR(AL_INVALID_ENUM); } @@ -809,6 +813,7 @@ static ALenum GetSourceiv(const ALsource *Source, ALCcontext *Context, ALenum na break; default: + ERR("Unexpected param: 0x%04x\n", name); RETERR(AL_INVALID_ENUM); } @@ -880,6 +885,7 @@ static ALenum GetSourcei64v(const ALsource *Source, ALCcontext *Context, ALenum break; default: + ERR("Unexpected param: 0x%04x\n", name); RETERR(AL_INVALID_ENUM); }