wow, wasn't thinking well with that one. fixes the seg with the default renderer

This commit is contained in:
Bill Currie 2007-03-27 00:49:20 +00:00 committed by Jeff Teunissen
parent b987d5e887
commit 522b069433

View file

@ -112,8 +112,7 @@ SND_PaintChannels (unsigned endtime)
sfxbuffer_t *sc; sfxbuffer_t *sc;
// clear the paint buffer // clear the paint buffer
memset (snd_paintbuffer, 0, (endtime - snd_paintedtime) * memset (snd_paintbuffer, 0, sizeof (snd_paintbuffer));
sizeof (portable_samplepair_t));
while (snd_paintedtime < endtime) { while (snd_paintedtime < endtime) {
// if snd_paintbuffer is smaller than DMA buffer // if snd_paintbuffer is smaller than DMA buffer