diff options
author | emersion <contact@emersion.fr> | 2018-03-20 23:10:42 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-03-21 07:37:09 +0100 |
commit | 3581573bdcbe3c905eae83af53cccbcdd52edad2 (patch) | |
tree | 41290d6330facfe127b0a9ab4107bff364dc1967 /examples/touch.c | |
parent | 95e86e675a7eef326958ab9047ff4ca0d0182cfc (diff) |
render/gles2: make wlr_renderer_begin take viewport size
This allows raw GL calls outside wlr_renderer to be removed.
Diffstat (limited to 'examples/touch.c')
-rw-r--r-- | examples/touch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/touch.c b/examples/touch.c index 0968e82a..f9c496cf 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -42,7 +42,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts wlr_output_effective_resolution(wlr_output, &width, &height); wlr_output_make_current(wlr_output, NULL); - wlr_renderer_begin(sample->renderer, wlr_output); + wlr_renderer_begin(sample->renderer, wlr_output->width, wlr_output->height); wlr_renderer_clear(sample->renderer, (float[]){0.25f, 0.25f, 0.25f, 1}); struct touch_point *p; |