=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Use accurate rt_count in ffp_blitter_clear().

Alexandre Julliard julliard at winehq.org
Thu Jan 10 13:27:09 CST 2019


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Thu Jan 10 15:10:14 2019 +0100

wined3d: Use accurate rt_count in ffp_blitter_clear().

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/surface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 85f9489..a36d010 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2089,11 +2089,11 @@ static void ffp_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_de
     }
 
     if (flags)
-        device_clear_render_targets(device, rt_count, fb, rect_count,
+        device_clear_render_targets(device, flags & WINED3DCLEAR_TARGET ? rt_count : 0, fb, rect_count,
                 clear_rects, draw_rect, flags, colour, depth, stencil);
 
     if (next_flags && (next = blitter->next))
-        next->ops->blitter_clear(next, device, rt_count, fb, rect_count,
+        next->ops->blitter_clear(next, device, next_flags & WINED3DCLEAR_TARGET ? rt_count : 0, fb, rect_count,
                 clear_rects, draw_rect, next_flags, colour, depth, stencil);
 }
 




More information about the wine-cvs mailing list