Check for a couple missing input formats and remove an unneeded default case
This commit is contained in:
parent
e800f8c0a7
commit
07a7c03adb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user