[Bug 54659] d3d8:device & d3d9:device sometimes get floating point underflow in GenerateRampFromGamma() in Wine