aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-09-21 09:42:51 -0700
committerChris Robinson <[email protected]>2015-09-21 09:43:51 -0700
commit33ac3095dd67cdd02c06291e96aca1b061fcc7cf (patch)
tree5c0533a548cc36dd1f7771eae2b103f5a5c62700
parenta774408753bebd0a2acf3b0b7d6d24d6e2e43606 (diff)
Handle up to 6 values with alSourcedvSOFT and alGetSourcefv
-rw-r--r--OpenAL32/alSource.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index c48ccfea..de33ce22 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1648,11 +1648,11 @@ AL_API ALvoid AL_APIENTRY alSourcedvSOFT(ALuint source, ALenum param, const ALdo
alSetError(Context, AL_INVALID_NAME);
else if(!values)
alSetError(Context, AL_INVALID_VALUE);
- else if(!((count=DoubleValsByProp(param)) > 0 && count <= 3))
+ else if(!((count=DoubleValsByProp(param)) > 0 && count <= 6))
alSetError(Context, AL_INVALID_ENUM);
else
{
- ALfloat fvals[3];
+ ALfloat fvals[6];
ALint i;
for(i = 0;i < count;i++)
@@ -1851,11 +1851,11 @@ AL_API ALvoid AL_APIENTRY alGetSourcefv(ALuint source, ALenum param, ALfloat *va
alSetError(Context, AL_INVALID_NAME);
else if(!values)
alSetError(Context, AL_INVALID_VALUE);
- else if(!((count=FloatValsByProp(param)) > 0 && count <= 3))
+ else if(!((count=FloatValsByProp(param)) > 0 && count <= 6))
alSetError(Context, AL_INVALID_ENUM);
else
{
- ALdouble dvals[3];
+ ALdouble dvals[6];
if(GetSourcedv(Source, Context, param, dvals))
{
ALint i;