]> git.xonotic.org Git - xonotic/darkplaces.git/commit
fix a crash in debug builds where the compiler did not optimize
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 May 2011 09:41:52 +0000 (09:41 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 May 2011 09:41:52 +0000 (09:41 +0000)
commitb812f1cdbdd266c770423017f47a129e64811cf0
treee134025b713fc82d9e585a03c061689d5a90acc3
parent8db36146f598c50f57d2f8dd60f69a64fe15e8d5
fix a crash in debug builds where the compiler did not optimize
ch->sfx-> to use a local variable holding the unchanging value of sfx
(the crash occurs when the mixer thread clears ch->sfx while the main
thread is deciding whether to merge a sound onto an existing channel -
if the channel dies during this code, the sfx pointer must be preserved)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11161 d7cf8633-e32d-0410-b094-e92efae38249
snd_main.c
snd_main.h
snd_mix.c