wined3d: Use higher precision to convert floats into text.
Vitaliy Margolen
wine-devel at kievinfo.com
Mon May 26 20:00:59 CDT 2008
Chris Robinson wrote:
> 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?
>
>
I thought they were clamped? In either case .12 should be enough precision
to avoid problems. Or the whole local constants needs to be rolled back.
Translating binary -> text -> binary is IMHO wrong.
Vitaliy.
More information about the wine-devel
mailing list