diff options
author | Chris Robinson <[email protected]> | 2016-05-25 06:45:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-25 06:45:56 -0700 |
commit | 01f3e33df95c83efeb46a8f51670c99251d0cfdb (patch) | |
tree | 3c3fbec0ab5fa2b14dc78866ae9545f16ca25218 /OpenAL32 | |
parent | ea83c959caddca82affb5e87bf3d50b7511199d7 (diff) |
Remove a couple unneeded functions
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alSource.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 22774fa4..ec32ac8d 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -829,8 +829,10 @@ static ALboolean SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp p { /* Add refcount on the new slot, and release the previous slot */ if(slot) IncrementRef(&slot->ref); - slot = ExchangePtr((XchgPtr*)&Source->Send[values[1]].Slot, slot); - if(slot) DecrementRef(&slot->ref); + if(Source->Send[values[1]].Slot) + DecrementRef(&Source->Send[values[1]].Slot->ref); + Source->Send[values[1]].Slot = slot; + /* We must force an update if the auxiliary slot changed on a * playing source, in case the slot is about to be deleted. */ @@ -839,8 +841,9 @@ static ALboolean SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp p else { if(slot) IncrementRef(&slot->ref); - slot = ExchangePtr((XchgPtr*)&Source->Send[values[1]].Slot, slot); - if(slot) DecrementRef(&slot->ref); + if(Source->Send[values[1]].Slot) + DecrementRef(&Source->Send[values[1]].Slot->ref); + Source->Send[values[1]].Slot = slot; DO_UPDATEPROPS(); } |