mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-26 06:46:56 -04:00
color mgmt: bug fixes
This commit is contained in:
parent
10bf68b928
commit
1c0643d800
8 changed files with 30 additions and 11 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue