color mgmt: bug fixes

This commit is contained in:
Devin Bayer 2020-08-03 11:25:09 +02:00
parent 10bf68b928
commit 1c0643d800
8 changed files with 30 additions and 11 deletions

View file

@ -30,8 +30,6 @@ void wlr_renderer_destroy(struct wlr_renderer *r) {
}
wlr_signal_emit_safe(&r->events.destroy, r);
wlr_color_config_free(r->color);
if (r->impl && r->impl->destroy) {
r->impl->destroy(r);
} else {
@ -67,6 +65,11 @@ void wlr_renderer_scissor(struct wlr_renderer *r, struct wlr_box *box) {
r->impl->scissor(r, box);
}
void wlr_renderer_color_config(struct wlr_renderer *r, struct wlr_color_config *color) {
assert(r->rendering);
r->impl->color_config(r, color);
}
bool wlr_render_texture(struct wlr_renderer *r, struct wlr_texture *texture,
const float projection[static 9], int x, int y, float alpha) {
struct wlr_box box = { .x = x, .y = y };