Don't explicitly restore the old HRTF when initializing panning

Otherwise it won't store the name in the device.
This commit is contained in:
Chris Robinson
2017-04-07 08:02:13 -07:00
parent b551291840
commit e267f6b88e
-12
View File
@@ -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);