[PATCH] wined3d: Use intBitsToFloat() instead of uintBitsToFloat().

Henri Verbeet hverbeet at gmail.com
Fri Apr 19 10:54:03 CDT 2019


On Fri, 19 Apr 2019 at 18:23, Paul Gofman <gofmanp at gmail.com> wrote:
> -        shader_addline(buffer, "uintBitsToFloat(uvec4(%#xu, %#xu, %#xu, %#xu))\n"
> -                "        /* %s, %s, %s, %s */", uint_values[0], uint_values[1],
> -                uint_values[2], uint_values[3], str[0], str[1], str[2], str[3]);
> +        shader_addline(buffer, "intBitsToFloat(ivec4(%d, %d, %d, %d))\n"
> +                "        /* %s, %s, %s, %s */", int_values[0], int_values[1],
> +                int_values[2], int_values[3], str[0], str[1], str[2], str[3]);
Do we have to use %d? I'd expect %#x to work.



More information about the wine-devel mailing list