diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-08 20:48:57 +0100 |
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-08 20:48:57 +0100 |
| commit | f5ae54f8c3fe954a08faa9b2de695c0326f2aeac (patch) | |
| tree | 4c019dd25b0999d3136c5918b89385c365176856 /indra/llaudio/llaudioengine.cpp | |
| parent | 9fd216e874b3937ae53bdd827d8120b42558a06f (diff) | |
DEV-11516 FIXED VWR-5308: Current wind noise generation is CPU intensive.
Minor optimizations to wind generation. Patch by gigs and aimee, reviewed by merov.
Diffstat (limited to 'indra/llaudio/llaudioengine.cpp')
| -rw-r--r-- | indra/llaudio/llaudioengine.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llaudio/llaudioengine.cpp b/indra/llaudio/llaudioengine.cpp index b92ccd1d77..9f4c108dff 100644 --- a/indra/llaudio/llaudioengine.cpp +++ b/indra/llaudio/llaudioengine.cpp @@ -548,12 +548,11 @@ void LLAudioEngine::enableWind(bool enable) { if (enable && (!mEnableWind)) { - initWind(); - mEnableWind = enable; + mEnableWind = initWind(); } else if (mEnableWind && (!enable)) { - mEnableWind = enable; + mEnableWind = false; cleanupWind(); } } |
