From ddb1779f9fee28b6393ba6607852a078ed65575f Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 3 Feb 2018 09:32:02 +0100 Subject: render: make wlr_renderer_clear take a float[4] for the color --- render/gles2/renderer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'render/gles2') diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index bdb62ff3..f57e9dae 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -121,9 +121,9 @@ static void wlr_gles2_end(struct wlr_renderer *wlr_renderer) { // no-op } -static void wlr_gles2_clear(struct wlr_renderer *wlr_renderer, float red, - float green, float blue, float alpha) { - glClearColor(red, green, blue, alpha); +static void wlr_gles2_clear(struct wlr_renderer *wlr_renderer, + const float (*color)[4]) { + glClearColor((*color)[0], (*color)[1], (*color)[2], (*color)[3]); glClear(GL_COLOR_BUFFER_BIT); } -- cgit v1.2.3