diff options
author | Chris Robinson <[email protected]> | 2017-04-15 20:10:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-04-15 20:10:32 -0700 |
commit | 8f1a968d7934117fa5ff499e3989ea2ae8e17b52 (patch) | |
tree | f0edbc749ceb9c444f0c12cc0b3bc6c4fa083497 | |
parent | fca83263f46c8934b58d17997362eeecd6a79905 (diff) |
Correctly handle the attribute array size for alcGetInteger64vSOFT
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3274,11 +3274,11 @@ ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname, switch(pname) { case ALC_ATTRIBUTES_SIZE: - *values = NumAttrsForDevice(device)+2; + *values = NumAttrsForDevice(device)+4; break; case ALC_ALL_ATTRIBUTES: - if(size < NumAttrsForDevice(device)+2) + if(size < NumAttrsForDevice(device)+4) alcSetError(device, ALC_INVALID_VALUE); else { |