From 03c9b460346592c902920de2fe16a15dd72f71df Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 31 May 2017 15:15:42 -0400 Subject: Have backend manage opengl context --- example/main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'example') diff --git a/example/main.c b/example/main.c index ed9eac0b..fb475ac8 100644 --- a/example/main.c +++ b/example/main.c @@ -24,9 +24,7 @@ struct output_state { }; void output_frame(struct wl_listener *listener, void *data) { - struct wlr_output *output = data; - struct output_state *ostate = wl_container_of( - listener, ostate, frame); + struct output_state *ostate = wl_container_of(listener, ostate, frame); struct state *s = ostate->state; struct timespec now; @@ -48,12 +46,8 @@ void output_frame(struct wl_listener *listener, void *data) { s->last_frame = now; - wlr_drm_output_begin(output); - glClearColor(s->color[0], s->color[1], s->color[2], 1.0); glClear(GL_COLOR_BUFFER_BIT); - - wlr_drm_output_end(output); } void output_add(struct wl_listener *listener, void *data) { -- cgit v1.2.3