Manually save and restore the FPU rounding mode on Windows
commitbc386af5c5607f0d7a7ed911d5975fc9758c7110
authorChris Robinson <chris.kcat@gmail.com>
Tue, 19 Sep 2017 10:42:00 +0000 (19 03:42 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Tue, 19 Sep 2017 10:42:00 +0000 (19 03:42 -0700)
tree104b28a7705d1a0c0ebebdff549bc10210c66f2a
parent4ca8b4080a2a0a434a35179a869e23c288bb7451
Manually save and restore the FPU rounding mode on Windows

Apparently there is a bug with at least MinGW-W64 where fegetenv and fesetenv
do not properly save and restore the FPU rounding mode, resulting in the
rounding mode remaining as round-to-zero after certain function calls. I do not
know if this also affects MSVC, but better safe than sorry for now.
Alc/helpers.c
OpenAL32/Include/alMain.h