Jan Sikorski : d2d1: Explicitly set default blend state.

Alexandre Julliard julliard at winehq.org
Wed Nov 3 16:42:02 CDT 2021


Module: wine
Branch: master
Commit: bf284dfc176e98b3532d436f8f01d147286768ba
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=bf284dfc176e98b3532d436f8f01d147286768ba

Author: Jan Sikorski <jsikorski at codeweavers.com>
Date:   Tue Nov  2 14:46:57 2021 +0100

d2d1: Explicitly set default blend state.

Signed-off-by: Jan Sikorski <jsikorski at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d2d1/device.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/d2d1/device.c b/dlls/d2d1/device.c
index c6ef2e28690..2069eeda0fc 100644
--- a/dlls/d2d1/device.c
+++ b/dlls/d2d1/device.c
@@ -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);
 




More information about the wine-cvs mailing list