[PATCH 6/9] wined3d: Add a memory_colour_fill for clearing the entire level to zero.

Henri Verbeet hverbeet at gmail.com
Mon May 2 10:36:50 CDT 2022


On Sun, 1 May 2022 at 20:39, Stefan Dösinger <stefan at codeweavers.com> wrote:
> +    /* Fast and simple path for setting everything to zero. The C library's memset is
> +     * more sophisticated than our code below. Also this works for block formats, which
> +     * we still need to zero-initialize for newly created resources. */
> +    if (!colour->r && !colour->g && !colour->b && !colour->a &&
> +            !memcmp(box, &level_box, sizeof(*box)))
> +    {

The "&&" should go to the start of the next line.



More information about the wine-devel mailing list