diff options
author | emersion <contact@emersion.fr> | 2018-02-03 09:32:02 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-02-03 09:32:02 +0100 |
commit | ddb1779f9fee28b6393ba6607852a078ed65575f (patch) | |
tree | 2a5265428c4a2af20e4a32c7cf6e830927a04ca7 /render/gles2 | |
parent | 402587ed65016fa89b9fcafc8d7af27b1958dd20 (diff) |
render: make wlr_renderer_clear take a float[4] for the color
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 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); } |