diff options
author | Timidger <APragmaticPlace@gmail.com> | 2018-12-21 13:56:10 -0500 |
---|---|---|
committer | Timidger <APragmaticPlace@gmail.com> | 2018-12-21 13:56:10 -0500 |
commit | 9af0c5338f4f999299406530b21217bbf0aae449 (patch) | |
tree | 42d51b82268e882dd10407dcb9a816abeb917c95 /render/gles2 | |
parent | 82d36025e1b84a317b5e48d6f622eb9583ce6f2d (diff) |
Standardize the wlr_box input paramaters
Fixes #1094
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index a5521909..50689ad4 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -73,8 +73,8 @@ static void gles2_scissor(struct wlr_renderer *wlr_renderer, PUSH_GLES2_DEBUG; if (box != NULL) { struct wlr_box gl_box; - wlr_box_transform(box, WL_OUTPUT_TRANSFORM_FLIPPED_180, - renderer->viewport_width, renderer->viewport_height, &gl_box); + wlr_box_transform(&gl_box, box, WL_OUTPUT_TRANSFORM_FLIPPED_180, + renderer->viewport_width, renderer->viewport_height); glScissor(gl_box.x, gl_box.y, gl_box.width, gl_box.height); glEnable(GL_SCISSOR_TEST); |