diff options
author | Vaxry <[email protected]> | 2024-10-12 17:56:46 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-10-12 17:56:46 +0100 |
commit | 1822707c7e7394ce8c7572f2fe890763a307f499 (patch) | |
tree | 3981aff4f5dd5bb610f3ea235ef92eae21b77786 | |
parent | c3f7c9bbb52b9ad3d24ccfcc5c552ed16c9985a5 (diff) | |
download | Hyprland-1822707c7e7394ce8c7572f2fe890763a307f499.tar.gz Hyprland-1822707c7e7394ce8c7572f2fe890763a307f499.zip |
drm-syncobj: fix crash on missing timelines
fixes #8092
-rw-r--r-- | src/protocols/DRMSyncobj.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocols/DRMSyncobj.cpp b/src/protocols/DRMSyncobj.cpp index a7f242ee..1da4baaf 100644 --- a/src/protocols/DRMSyncobj.cpp +++ b/src/protocols/DRMSyncobj.cpp @@ -55,6 +55,9 @@ CDRMSyncobjSurfaceResource::CDRMSyncobjSurfaceResource(SP<CWpLinuxDrmSyncobjSurf return; } + if (!pending.acquireTimeline) + return; + if (pending.acquireTimeline && pending.releaseTimeline && pending.acquireTimeline == pending.releaseTimeline) { if (pending.acquirePoint >= pending.releasePoint) { resource->error(WP_LINUX_DRM_SYNCOBJ_SURFACE_V1_ERROR_CONFLICTING_POINTS, "Acquire and release points are on the same timeline, and acquire >= release"); |