aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-29 13:29:37 -0700
committerChris Robinson <[email protected]>2011-08-29 13:29:37 -0700
commit950570b8c30b08cff0d4325858efb4d852a3f6e7 (patch)
tree00ca3e6ff0b8311f49d5c53bd383daa20933acb3
parent72beb577b6190d9df0426825f131a5c8624aaeec (diff)
Do a proper exchange when setting a new state
-rw-r--r--OpenAL32/alState.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c
index a65eaa82..841f6f31 100644
--- a/OpenAL32/alState.c
+++ b/OpenAL32/alState.c
@@ -642,8 +642,7 @@ AL_API ALvoid AL_APIENTRY alProcessUpdatesSOFT(void)
if(Source->lOffset != -1)
ApplyOffset(Source);
- new_state = Source->new_state;
- Source->new_state = AL_NONE;
+ new_state = Exchange_ALenum(&Source->new_state, AL_NONE);
if(new_state)
SetSourceState(Source, Context, new_state);
}