diff options
author | Chris Robinson <[email protected]> | 2016-05-17 20:02:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-17 20:02:46 -0700 |
commit | aff725cba3f64cb668acf64b8f547a128a8976d1 (patch) | |
tree | 158964bb2d5fb9c812c15abce81d62e84b84f6b5 /OpenAL32/alState.c | |
parent | 82675c018dab303ce39665512f0ae847d01289da (diff) |
Avoid redundantly storing distance model settings
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index e8a8d391..443ab884 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -63,10 +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)) - { - UpdateListenerProps(context); UpdateAllSourceProps(context); - } done: WriteUnlock(&context->PropLock); @@ -91,10 +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)) - { - UpdateListenerProps(context); UpdateAllSourceProps(context); - } done: WriteUnlock(&context->PropLock); @@ -637,10 +631,7 @@ AL_API ALvoid AL_APIENTRY alDistanceModel(ALenum value) if(!context->SourceDistanceModel) { if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire)) - { - UpdateListenerProps(context); UpdateAllSourceProps(context); - } } WriteUnlock(&context->PropLock); |