aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-11-10 03:36:37 -0800
committerChris Robinson <[email protected]>2012-11-10 03:36:37 -0800
commit4f624cb734047199d0a46893942054e0a6393b1e (patch)
tree23ada4f06443464eea0c2d0dab20e6455633f9f9 /OpenAL32/alBuffer.c
parentb03013d6a731750bde633c244de860092f2c7b1a (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.
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c4
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: