aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-05 00:32:41 -0700
committerChris Robinson <[email protected]>2012-10-05 00:32:41 -0700
commit16bdf79d4cbb87a90ff70d981d02eecb0fc4bed1 (patch)
treece23c04ce803cfac76aa419b4121e5c894cefb54 /Alc
parent0b47844606943931803f8d4f6ffae48b9487f238 (diff)
Round up the device's default slot alignment
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index c1b698cc..08013b87 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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;