aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-03-12 23:58:12 -0700
committerChris Robinson <[email protected]>2012-03-12 23:58:12 -0700
commit8ef777ebbefd651e6039369cc52fa13effa18c2f (patch)
tree590fcf778e1527b44c018ce57daf393c6da9ae12
parent305d790a199261c258359f33cd0681438dbcf7d8 (diff)
Restore the FPU mode in an error path
-rw-r--r--OpenAL32/alAuxEffectSlot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index 2014fd7a..38b182df 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -550,6 +550,7 @@ ALvoid InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, ALeffect
if(ALeffectState_DeviceUpdate(State, Context->Device) == AL_FALSE)
{
+ RestoreFPUMode(oldMode);
UnlockContext(Context);
ALeffectState_Destroy(State);
alSetError(Context, AL_OUT_OF_MEMORY);