mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-09 07:08:04 +02:00
Merge branch 'master' into 'master'
linux_drm_syncobj_v1: minor fixes See merge request wlroots/wlroots!5358
This commit is contained in:
commit
2a2b472495
1 changed files with 2 additions and 1 deletions
|
|
@ -387,6 +387,7 @@ static void manager_handle_import_timeline(struct wl_client *client,
|
|||
struct wl_resource *timeline_resource = wl_resource_create(client,
|
||||
&wp_linux_drm_syncobj_timeline_v1_interface, version, id);
|
||||
if (timeline_resource == NULL) {
|
||||
wlr_drm_syncobj_timeline_unref(timeline);
|
||||
wl_resource_post_no_memory(resource);
|
||||
return;
|
||||
}
|
||||
|
|
@ -545,7 +546,7 @@ bool wlr_linux_drm_syncobj_v1_state_add_release_point(
|
|||
bool wlr_linux_drm_syncobj_v1_state_add_release_from_implicit_sync(
|
||||
struct wlr_linux_drm_syncobj_surface_v1_state *state,
|
||||
struct wlr_buffer *buffer, struct wl_event_loop *event_loop) {
|
||||
if (state->release_merger != NULL) {
|
||||
if (state->release_merger == NULL) {
|
||||
return true;
|
||||
}
|
||||
return wlr_drm_syncobj_merger_add_dmabuf(state->release_merger, buffer, event_loop);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue