mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Merge pull request #81 from MAN-AT-ARMS/sndmix_altivec
Fix possible division by zero in S_PaintChannelFrom16_altivec
This commit is contained in:
commit
36f65fd7c5
1 changed files with 4 additions and 0 deletions
|
@ -236,6 +236,10 @@ static void S_PaintChannelFrom16_altivec( channel_t *ch, const sfx_t *sc, int co
|
||||||
short *samples;
|
short *samples;
|
||||||
float ooff, fdata[2], fdiv, fleftvol, frightvol;
|
float ooff, fdata[2], fdiv, fleftvol, frightvol;
|
||||||
|
|
||||||
|
if (sc->soundChannels <= 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
samp = &paintbuffer[ bufferOffset ];
|
samp = &paintbuffer[ bufferOffset ];
|
||||||
|
|
||||||
if (ch->doppler) {
|
if (ch->doppler) {
|
||||||
|
|
Loading…
Reference in a new issue