diff options
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 0a01dc37..8ca5a012 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -24,6 +24,7 @@ #include "alMain.h" #include "AL/alc.h" #include "alError.h" +#include "alSource.h" #include "alState.h" static const ALchar alVendor[] = "OpenAL Community"; @@ -644,6 +645,7 @@ ALAPI ALvoid ALAPIENTRY alSpeedOfSound(ALfloat flSpeedOfSound) ALAPI ALvoid ALAPIENTRY alDistanceModel(ALenum value) { ALCcontext *Context; + ALsource *Source; Context=alcGetCurrentContext(); if (Context) @@ -660,6 +662,8 @@ ALAPI ALvoid ALAPIENTRY alDistanceModel(ALenum value) case AL_EXPONENT_DISTANCE: case AL_EXPONENT_DISTANCE_CLAMPED: Context->DistanceModel = value; + for(Source = Context->Source;Source != NULL;Source = Source->next) + Source->DistanceModel = value; break; default: |