From 3b9b176f144ecae9ffa63e8db3a9dfe04d00853a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 5 Dec 2012 08:29:38 -0800 Subject: Print an error if trying to handle a missed source property --- OpenAL32/alSource.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenAL32/alSource.c') 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); } -- cgit v1.2.3