Standardize the wlr_box input paramaters

Fixes #1094
This commit is contained in:
Timidger 2018-12-21 13:56:10 -05:00
parent 82d36025e1
commit 9af0c5338f
No known key found for this signature in database
GPG key ID: 8084666B5E23A20F
11 changed files with 34 additions and 36 deletions

View file

@ -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);