From 07a7c03adb36924be652cc807a8cfcd63f9f528e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 29 Nov 2010 22:07:07 -0800 Subject: Check for a couple missing input formats and remove an unneeded default case --- OpenAL32/alBuffer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index 50d7369f..0c97845e 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -290,6 +290,8 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid case SrcFmtUByte: case SrcFmtShort: case SrcFmtUShort: + case SrcFmtInt: + case SrcFmtUInt: case SrcFmtFloat: err = LoadData(ALBuf, freq, format, size, SrcChannels, SrcType, data); if(err != AL_NO_ERROR) @@ -371,10 +373,6 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid else alSetError(Context, AL_OUT_OF_MEMORY); } break; - - default: - alSetError(Context, AL_INVALID_ENUM); - break; } ProcessContext(Context); -- cgit v1.2.3