compositor: Introduce a weston_renderer object
Move the gles2 render functions to vfuncs on the renderer object.
diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index e047214..4908798 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -342,9 +342,10 @@
pixman_region32_t *damage)
{
struct wayland_output *output = (struct wayland_output *) output_base;
+ struct weston_compositor *ec = output->base.compositor;
struct wl_callback *callback;
- gles2_renderer_repaint_output(output_base, damage);
+ ec->renderer->repaint_output(&output->base, damage);
callback = wl_surface_frame(output->parent.surface);
wl_callback_add_listener(callback, &frame_listener, output);