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
|
|
@ -46,7 +46,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});
|
||||
|
||||
float matrix[9];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue