From 16bdf79d4cbb87a90ff70d981d02eecb0fc4bed1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 5 Oct 2012 00:32:41 -0700 Subject: Round up the device's default slot alignment --- Alc/ALc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3