Commit cd3c3e56 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Use accurate rt_count in ffp_blitter_clear().

parent 2727a6ec
...@@ -2089,11 +2089,11 @@ static void ffp_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_de ...@@ -2089,11 +2089,11 @@ static void ffp_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_de
} }
if (flags) 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); clear_rects, draw_rect, flags, colour, depth, stencil);
if (next_flags && (next = blitter->next)) 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); clear_rects, draw_rect, next_flags, colour, depth, stencil);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment