[PATCH 5/5] wined3d: Use the command stream state in wined3d_cs_exec_clear().
Henri Verbeet
hverbeet at codeweavers.com
Sun Feb 26 00:46:35 CST 2017
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
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)
--
2.1.4
More information about the wine-patches
mailing list