diff options
Diffstat (limited to 'example/tablet.c')
-rw-r--r-- | example/tablet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/example/tablet.c b/example/tablet.c index 0343bd0a..d7f7d042 100644 --- a/example/tablet.c +++ b/example/tablet.c @@ -41,6 +41,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts int32_t width, height; wlr_output_effective_resolution(wlr_output, &width, &height); + wlr_output_make_current(wlr_output); wlr_renderer_begin(sample->renderer, wlr_output); float matrix[16], view[16]; @@ -74,6 +75,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts } wlr_renderer_end(sample->renderer); + wlr_output_swap_buffers(wlr_output); } static void handle_tool_axis(struct tablet_tool_state *tstate, |