diff options
author | Chris Robinson <[email protected]> | 2012-10-05 00:32:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-05 00:32:41 -0700 |
commit | 16bdf79d4cbb87a90ff70d981d02eecb0fc4bed1 (patch) | |
tree | ce23c04ce803cfac76aa419b4121e5c894cefb54 | |
parent | 0b47844606943931803f8d4f6ffae48b9487f238 (diff) |
Round up the device's default slot alignment
-rw-r--r-- | Alc/ALc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2833,7 +2833,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName) if(DefaultEffect.type != AL_EFFECT_NULL) { - device->DefaultSlot = (ALeffectslot*)((ALintptrEXT)(device+1)&~15); + device->DefaultSlot = (ALeffectslot*)(((ALintptrEXT)(device+1)+15)&~15); if(InitEffectSlot(device->DefaultSlot) != AL_NO_ERROR) { device->DefaultSlot = NULL; |