From e267f6b88eaf69d1ea03d9ac62a7c8ea866f5384 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 7 Apr 2017 08:02:13 -0700 Subject: Don't explicitly restore the old HRTF when initializing panning Otherwise it won't store the name in the device. --- Alc/panning.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Alc/panning.c b/Alc/panning.c index 63ff618e..dcdcf36d 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -1166,18 +1166,6 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, enum HrtfRequestMode hrtf Hrtf_DecRef(hrtf); } - /* Reuse the old HRTF if it's compatible and any desired HRTF wasn't - * compatible. - */ - if(!device->HrtfHandle && old_hrtf) - { - if(old_hrtf->sampleRate == device->Frequency) - { - device->HrtfHandle = old_hrtf; - old_hrtf = NULL; - } - } - for(i = 0;!device->HrtfHandle && i < VECTOR_SIZE(device->HrtfList);i++) { const EnumeratedHrtf *entry = &VECTOR_ELEM(device->HrtfList, i); -- cgit v1.2.3