aboutsummaryrefslogtreecommitdiff
path: root/examples/simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple.c')
-rw-r--r--examples/simple.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/simple.c b/examples/simple.c
index 4bbdf399..45cb2b93 100644
--- a/examples/simple.c
+++ b/examples/simple.c
@@ -34,8 +34,12 @@ void handle_output_frame(struct output_state *output, struct timespec *ts) {
sample->dec = inc;
}
+ wlr_output_make_current(output->output);
+
glClearColor(sample->color[0], sample->color[1], sample->color[2], 1.0);
glClear(GL_COLOR_BUFFER_BIT);
+
+ wlr_output_swap_buffers(output->output);
}
int main() {