mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-13 05:34:13 -04:00
wlr_drm_format: Introduce drm_format_finish
This commit is contained in:
parent
e353c5c631
commit
b45396c790
7 changed files with 19 additions and 0 deletions
|
|
@ -513,6 +513,7 @@ static bool drm_connector_state_update_primary_fb(struct wlr_drm_connector *conn
|
|||
// TODO: fallback to modifier-less buffer allocation
|
||||
bool ok = init_drm_surface(&plane->mgpu_surf, &drm->mgpu_renderer,
|
||||
source_buf->width, source_buf->height, format);
|
||||
wlr_drm_format_finish(format);
|
||||
free(format);
|
||||
if (!ok) {
|
||||
return false;
|
||||
|
|
@ -953,6 +954,7 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
|
|||
|
||||
bool ok = init_drm_surface(&plane->mgpu_surf, &drm->mgpu_renderer,
|
||||
buffer->width, buffer->height, format);
|
||||
wlr_drm_format_finish(format);
|
||||
free(format);
|
||||
if (!ok) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue