wined3d: Use higher precision to convert floats into text.

Chris Robinson chris.kcat at gmail.com
Mon May 26 18:12:01 CDT 2008


On Monday 26 May 2008 12:37:04 pm Vitaliy Margolen wrote:
> -            shader_addline(buffer, "PARAM srgb_mul_low = {%f, %f, %f,
> 1.0};\n",
> +            shader_addline(buffer, "PARAM srgb_mul_low = {%.12f, 
> %.12f, %.12f, 1.0};\n",

I don't know if ARB shaders would except the notation (GLSL does), but 
would %.8e or somesuch work better than %.12f at maintaining accuracy?



More information about the wine-devel mailing list