diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-06-26 17:34:15 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-06-26 17:34:15 +1200 |
commit | 0cd94f0cf0dd104cee9837dc2961536a078d089e (patch) | |
tree | 798abd248cf605f2a82ef732c0bed0a1812704c7 /example/tablet.c | |
parent | f252c5a79214a3d3cd7ab3f239050b234e4ae9e2 (diff) |
Added software cursor fallback
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, |