diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-26 18:23:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-26 18:23:52 -0400 |
commit | ce471f3371221e56c7352919465f1fc8f5de3956 (patch) | |
tree | 8c40a229d38ed173c8a87e411b01b62055023bef /example/simple.c | |
parent | f252c5a79214a3d3cd7ab3f239050b234e4ae9e2 (diff) | |
parent | 97213cc00e0a83235ca50b1305ab9ecafd295259 (diff) |
Merge pull request #23 from ascent12/cursor
Software cursor + Hardware cursor improvements
Diffstat (limited to 'example/simple.c')
-rw-r--r-- | example/simple.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/simple.c b/example/simple.c index 4bbdf399..45cb2b93 100644 --- a/example/simple.c +++ b/example/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() { |