mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render/gles2: make wlr_renderer_begin take viewport size
This allows raw GL calls outside wlr_renderer to be removed.
This commit is contained in:
parent
95e86e675a
commit
3581573bdc
14 changed files with 47 additions and 51 deletions
|
|
@ -101,7 +101,7 @@ static void handle_output_frame(struct output_state *output,
|
|||
struct wlr_output *wlr_output = output->output;
|
||||
|
||||
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});
|
||||
|
||||
animate_cat(sample, output->output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue