d2d1: Explicitly set default blend state.

Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jan Sikorski 2021-11-02 14:46:57 +01:00 committed by Alexandre Julliard
parent e16c9a8604
commit bf284dfc17
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ static void d2d_device_context_draw(struct d2d_device_context *render_target, en
ID3D11DeviceContext1_OMSetBlendState(context, render_target->bs, NULL, D3D11_DEFAULT_SAMPLE_MASK);
d2d_brush_bind_resources(brush, render_target, 0);
}
else
{
ID3D11DeviceContext1_OMSetBlendState(context, NULL, NULL, D3D11_DEFAULT_SAMPLE_MASK);
}
if (opacity_brush)
d2d_brush_bind_resources(opacity_brush, render_target, 1);