mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 10:38:30 +02:00
make sure rotation plugged into sin/cos lookup tables is always positive, fixes FP exception
This commit is contained in:
parent
f2bfc66c5d
commit
7b9ff48d02
1 changed files with 3 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ void MoveStars(void)
|
|||
if (stars[n].rotation > MAXANGLES) {
|
||||
stars[n].rotation = 0.0;
|
||||
}
|
||||
else if (stars[n].rotation < 0.0) {
|
||||
stars[n].rotation += 360.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue