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 /render/gles2 | |
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 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 14eea666..6b046bc4 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -26,13 +26,13 @@ static struct wlr_gles2_renderer *gles2_get_renderer( return renderer; } -static void gles2_begin(struct wlr_renderer *wlr_renderer, - struct wlr_output *output) { +static void gles2_begin(struct wlr_renderer *wlr_renderer, uint32_t width, + uint32_t height) { gles2_get_renderer(wlr_renderer); GLES2_DEBUG_PUSH; - glViewport(0, 0, output->width, output->height); + glViewport(0, 0, width, height); // enable transparency glEnable(GL_BLEND); |