From 9af0c5338f4f999299406530b21217bbf0aae449 Mon Sep 17 00:00:00 2001 From: Timidger Date: Fri, 21 Dec 2018 13:56:10 -0500 Subject: Standardize the wlr_box input paramaters Fixes #1094 --- render/gles2/renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/gles2') 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); -- cgit v1.2.3