render: make wlr_renderer_clear take a float[4] for the color

This commit is contained in:
emersion 2018-02-03 09:32:02 +01:00
parent 402587ed65
commit ddb1779f9f
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
9 changed files with 13 additions and 17 deletions

View file

@ -44,7 +44,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
wlr_output_make_current(wlr_output, NULL);
wlr_renderer_begin(sample->renderer, wlr_output);
wlr_renderer_clear(sample->renderer, 0.25f, 0.25f, 0.25f, 1);
wlr_renderer_clear(sample->renderer, &(float[]){0.25f, 0.25f, 0.25f, 1});
float matrix[16], view[16];
float distance = 0.8f * (1 - sample->distance);