d3d9/tests: Extend the FPU setup test.
commit28a9d6324a9421d444dc9122673d2992642a5d1e
authorStefan Dösinger <stefan@codeweavers.com>
Fri, 27 Feb 2015 09:48:41 +0000 (27 10:48 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 27 Feb 2015 12:53:33 +0000 (27 21:53 +0900)
treed08d3aba50059f58d98ac421452d70ebf3042911
parent2971a928405aaa979db45c39b3cc10ac2c1c648e
d3d9/tests: Extend the FPU setup test.

Games created by GameMaker modify the FPU control word to enable
division by zero exceptions. The game Risk of Rain, which is written
with GameMaker, furthermore sets fogstart == fogend, which triggers an
exception when the GL driver attempts to calculate 1 / (fogend -
fogstart). This test adds some evidence that we are not supposed to
temporarily restore the FPU CW if D3DCREATE_FPU_PRESERVE is used.
dlls/d3d9/tests/device.c