diff options
author | Chris Robinson <[email protected]> | 2012-11-10 03:36:37 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-11-10 03:36:37 -0800 |
commit | 4f624cb734047199d0a46893942054e0a6393b1e (patch) | |
tree | 23ada4f06443464eea0c2d0dab20e6455633f9f9 | |
parent | b03013d6a731750bde633c244de860092f2c7b1a (diff) |
Load Int and UInt samples as float with alBufferData
This shouldn't really ever happen, as there's no 32-bit (u)int formats
alBufferData can take.
-rw-r--r-- | OpenAL32/alBuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index d6d62153..784e8b74 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -313,8 +313,6 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer, ALenum format, const ALvoi case UserFmtUByte: case UserFmtShort: case UserFmtUShort: - case UserFmtInt: - case UserFmtUInt: case UserFmtFloat: FrameSize = FrameSizeFromUserFmt(SrcChannels, SrcType); CHECK_VALUE(Context, (size%FrameSize) == 0); @@ -325,6 +323,8 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer, ALenum format, const ALvoi al_throwerr(Context, err); break; + case UserFmtInt: + case UserFmtUInt: case UserFmtByte3: case UserFmtUByte3: case UserFmtDouble: |