Skip to content

Commit

Permalink
examples/pointer: fix wlr_renderer_end call order
Browse files Browse the repository at this point in the history
Calling wlr_renderer_end after wlr_output_commit would make an
assertion fail.
  • Loading branch information
emersion committed Jun 20, 2020
1 parent c930160 commit 7846359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pointer.c
Expand Up @@ -101,8 +101,8 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
wlr_renderer_begin(renderer, wlr_output->width, wlr_output->height);
wlr_renderer_clear(renderer, state->clear_color);
wlr_output_render_software_cursors(wlr_output, NULL);
wlr_output_commit(wlr_output);
wlr_renderer_end(renderer);
wlr_output_commit(wlr_output);
}

static void handle_cursor_motion(struct wl_listener *listener, void *data) {
Expand Down

0 comments on commit 7846359

Please sign in to comment.