diff options
author | Chris Robinson <[email protected]> | 2011-06-17 14:56:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-06-17 14:59:10 -0700 |
commit | 3a072a294d33925514514b4a3f51a435865f8abf (patch) | |
tree | c497ccb5703825ef8cb1d10ec5efa71a9c78c80e /Alc/ALc.c | |
parent | 23ae3c69b5ffb5ac24567e618df2b0404e37748d (diff) |
Avoid resetting a flag that isn't on
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1342,10 +1342,10 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) if(!device->IsLoopbackDevice && GetConfigValueBool(NULL, "hrtf", AL_FALSE)) device->Flags |= DEVICE_USE_HRTF; - if(device->FmtChans != DevFmtStereo || device->Frequency != 44100) + if((device->FmtChans != DevFmtStereo || device->Frequency != 44100) && + (device->Flags&DEVICE_USE_HRTF)) { - if((device->Flags&DEVICE_USE_HRTF)) - AL_PRINT("HRTF disabled (format is %uhz %s)\n", device->Frequency, DevFmtChannelsString(device->FmtChans)); + AL_PRINT("HRTF disabled (format is %uhz %s)\n", device->Frequency, DevFmtChannelsString(device->FmtChans)); device->Flags &= ~DEVICE_USE_HRTF; } |