Round up the device's default slot alignment

This commit is contained in:
Chris Robinson 2012-10-05 00:32:41 -07:00
parent 0b47844606
commit 16bdf79d4c

View File

@ -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;