diff options
author | Chris Robinson <[email protected]> | 2009-11-27 20:05:21 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-11-27 20:05:21 -0800 |
commit | 98ce1d14c12bf164206b1f0d3ab4dca6d627c8be (patch) | |
tree | 062296b8c92b0c5e43217b0d2ce8e902bc39e594 /Alc/ALu.c | |
parent | 69f9ab88b9b9ad1b14bd1a143af230eab2a15b61 (diff) |
Update AL_EXTX_source_distance_model to require explicit enabling
The in-progress spec has been updated to reflect this
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -589,7 +589,8 @@ static ALvoid CalcSourceParams(const ALCcontext *ALContext, ALsource *ALSource, RoomRolloff[i] += ALSource->Send[i].Slot->effect.Reverb.RoomRolloffFactor; } - switch(ALSource->DistanceModel) + switch(ALContext->SourceDistanceModel ? ALSource->DistanceModel : + ALContext->DistanceModel) { case AL_INVERSE_DISTANCE_CLAMPED: Distance=__max(Distance,MinDist); |