aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-11-28 20:09:41 -0800
committerChris Robinson <[email protected]>2009-11-28 20:09:41 -0800
commitd930fb8d3dbc3bf49a5b1db919448c7e962dca2a (patch)
tree60c82e9624f2cc1dfbb2910de5b1eb8799f53fe2
parent3ec64eb0fd7ffc4393f79d57f4741e282a234c65 (diff)
Call the Update effect method for null effects
-rw-r--r--OpenAL32/alAuxEffectSlot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index 74097d3f..f6cb6e4b 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -508,11 +508,9 @@ static ALvoid InitializeEffect(ALCcontext *Context, ALeffectslot *ALEffectSlot,
ALEffectSlot->EffectState = NewState;
}
if(!effect)
- {
memset(&ALEffectSlot->effect, 0, sizeof(ALEffectSlot->effect));
- return;
- }
- memcpy(&ALEffectSlot->effect, effect, sizeof(*effect));
+ else
+ memcpy(&ALEffectSlot->effect, effect, sizeof(*effect));
ALEffect_Update(ALEffectSlot->EffectState, Context, effect);
}