Module: wine Branch: master Commit: 97266441f4756024821b71afb61c7ba6f0b26fff URL: http://source.winehq.org/git/wine.git/?a=commit;h=97266441f4756024821b71afb6...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Sun Feb 26 07:46:35 2017 +0100
wined3d: Use the command stream state in wined3d_cs_exec_clear().
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/cs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c index fa7c6dd..c686181 100644 --- a/dlls/wined3d/cs.c +++ b/dlls/wined3d/cs.c @@ -387,17 +387,16 @@ void wined3d_cs_emit_present(struct wined3d_cs *cs, struct wined3d_swapchain *sw
static void wined3d_cs_exec_clear(struct wined3d_cs *cs, const void *data) { + const struct wined3d_state *state = &cs->state; const struct wined3d_cs_clear *op = data; - const struct wined3d_state *state; struct wined3d_device *device; unsigned int i; RECT draw_rect;
device = cs->device; - state = &device->state; wined3d_get_draw_rect(state, &draw_rect); device_clear_render_targets(device, device->adapter->gl_info.limits.buffers, - cs->state.fb, op->rect_count, op->rects, &draw_rect, op->flags, + state->fb, op->rect_count, op->rects, &draw_rect, op->flags, &op->color, op->depth, op->stencil);
if (op->flags & WINED3DCLEAR_TARGET)