aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-04-07 08:02:13 -0700
committerChris Robinson <[email protected]>2017-04-07 08:02:13 -0700
commite267f6b88eaf69d1ea03d9ac62a7c8ea866f5384 (patch)
tree339ac2fbc0cb5d8144c7732a52ac60d9d12b3798 /Alc
parentb551291840ee0b670fb54c41ec385702d51604d8 (diff)
Don't explicitly restore the old HRTF when initializing panning
Otherwise it won't store the name in the device.
Diffstat (limited to 'Alc')
-rw-r--r--Alc/panning.c12
1 files changed, 0 insertions, 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);