util_blitter_save_vertex_elements(rctx->blitter,
rctx->vertex_elements);
util_blitter_save_viewport(rctx->blitter,
- rctx->viewport);
+ &rctx->viewport);
}
void r600_clear(struct pipe_context *ctx, unsigned buffers,
struct pipe_stencil_ref stencil_ref;
struct pipe_framebuffer_state fb_state;
struct radeon_draw *draw;
- struct pipe_viewport_state *viewport;
+ struct pipe_viewport_state viewport;
};
void r600_draw_arrays(struct pipe_context *ctx, unsigned mode,
return;
}
radeon_draw_set_new(rctx->draw, rstate);
- rctx->viewport = state;
+ rctx->viewport = *state;
}
static void r600_set_vertex_buffers(struct pipe_context *ctx,