From 98ce1d14c12bf164206b1f0d3ab4dca6d627c8be Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 27 Nov 2009 20:05:21 -0800 Subject: Update AL_EXTX_source_distance_model to require explicit enabling The in-progress spec has been updated to reflect this --- Alc/ALu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index fa2c92ea..54369c4b 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -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); -- cgit v1.2.3