diff options
author | Chris Robinson <[email protected]> | 2016-08-23 19:17:17 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-08-23 19:17:17 -0700 |
commit | c7eb0b7393231a137c31f75e0654214a08bc51a9 (patch) | |
tree | 478977dfab7d734ec68c8a35520ed2c4d3ab32fa /OpenAL32/alState.c | |
parent | dc8b7814c771d08abe61656b745e7763a010a3a3 (diff) |
Don't pass the context's distance model as the source's
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 59814a4b..fa3b190a 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -63,7 +63,7 @@ AL_API ALvoid AL_APIENTRY alEnable(ALenum capability) SET_ERROR_AND_GOTO(context, AL_INVALID_ENUM, done); } if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire)) - UpdateAllSourceProps(context); + UpdateListenerProps(context); done: WriteUnlock(&context->PropLock); @@ -88,7 +88,7 @@ AL_API ALvoid AL_APIENTRY alDisable(ALenum capability) SET_ERROR_AND_GOTO(context, AL_INVALID_ENUM, done); } if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire)) - UpdateAllSourceProps(context); + UpdateListenerProps(context); done: WriteUnlock(&context->PropLock); @@ -622,7 +622,7 @@ AL_API ALvoid AL_APIENTRY alDistanceModel(ALenum value) if(!context->SourceDistanceModel) { if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire)) - UpdateAllSourceProps(context); + UpdateListenerProps(context); } WriteUnlock(&context->PropLock); |