[PATCH v2 2/2] wined3d: Move the color masks to wined3d_blend_state.

Henri Verbeet hverbeet at gmail.com
Fri Mar 13 04:38:10 CDT 2020


On Fri, 13 Mar 2020 at 08:02, Zebediah Figura <z.figura12 at gmail.com> wrote:
> @@ -5158,7 +5154,7 @@ void draw_primitive(struct wined3d_device *device, const struct wined3d_state *s
>          if (!(rtv = fb->render_targets[i]) || rtv->format->id == WINED3DFMT_NULL)
>              continue;
>
> -        if (state->render_states[WINED3D_RS_COLORWRITEENABLE])
> +        if (!state->blend_state || state->blend_state->desc.rt[0].writemask)
>          {
This is mostly an existing issue, but that should probably use "rt[i]"
when independent blend states are enabled.



More information about the wine-devel mailing list