aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-11-25 18:56:10 -0800
committerChris Robinson <[email protected]>2008-11-25 18:56:10 -0800
commit55b9ccc2deacf6870cabff704239caf2c85493fa (patch)
tree2b743e582670e48b9aa67ba830805a4e7d483d69 /Alc/ALu.c
parent67d67a3bf636dc2cdaf0faf75875e0a17cb29577 (diff)
Implement AL_EXTX_source_distance_model
As with other EXTX extensions, this is subject to change and removal as the spec gets worked on
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index cb943eca..7454ad00 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -324,7 +324,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
flAttenuation = 1.0f;
RoomAttenuation = 1.0f;
- switch (ALContext->DistanceModel)
+ switch (ALSource->DistanceModel)
{
case AL_INVERSE_DISTANCE_CLAMPED:
Distance=__max(Distance,MinDist);