Round up the device's default slot alignment
This commit is contained in:
parent
0b47844606
commit
16bdf79d4c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user