wined3d: Use accurate rt_count in ffp_blitter_clear().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2019-01-10 15:10:14 +01:00 committed by Alexandre Julliard
parent 2727a6ecf6
commit cd3c3e56b1
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}