diff options
author | Vaxry <[email protected]> | 2024-08-06 13:32:53 +0200 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-08-06 13:32:53 +0200 |
commit | b0437c9f76dc3533eed23f5a9aec186d4a32f4d3 (patch) | |
tree | c6c1e496c50144fa7a8930725973e866ce62c4ac | |
parent | 4341ed594374f170b46f59867936baebd8482459 (diff) | |
download | Hyprland-b0437c9f76dc3533eed23f5a9aec186d4a32f4d3.tar.gz Hyprland-b0437c9f76dc3533eed23f5a9aec186d4a32f4d3.zip |
fix nvidia stuff with egl-wayland
-rw-r--r-- | src/protocols/DRMSyncobj.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocols/DRMSyncobj.cpp b/src/protocols/DRMSyncobj.cpp index 33339554..eb9cf973 100644 --- a/src/protocols/DRMSyncobj.cpp +++ b/src/protocols/DRMSyncobj.cpp @@ -41,14 +41,14 @@ CDRMSyncobjSurfaceResource::CDRMSyncobjSurfaceResource(SP<CWpLinuxDrmSyncobjSurf }); listeners.surfacePrecommit = surface->events.precommit.registerListener([this](std::any d) { - if (!!acquireTimeline != !!releaseTimeline) { - resource->error(acquireTimeline ? WP_LINUX_DRM_SYNCOBJ_SURFACE_V1_ERROR_NO_RELEASE_POINT : WP_LINUX_DRM_SYNCOBJ_SURFACE_V1_ERROR_NO_ACQUIRE_POINT, "Missing timeline"); + if ((acquireTimeline || releaseTimeline) && !surface->pending.texture) { + resource->error(WP_LINUX_DRM_SYNCOBJ_SURFACE_V1_ERROR_NO_BUFFER, "Missing buffer"); surface->pending.rejected = true; return; } - if ((acquireTimeline || releaseTimeline) && !surface->pending.texture) { - resource->error(WP_LINUX_DRM_SYNCOBJ_SURFACE_V1_ERROR_NO_BUFFER, "Missing buffer"); + if (!!acquireTimeline != !!releaseTimeline) { + resource->error(acquireTimeline ? WP_LINUX_DRM_SYNCOBJ_SURFACE_V1_ERROR_NO_RELEASE_POINT : WP_LINUX_DRM_SYNCOBJ_SURFACE_V1_ERROR_NO_ACQUIRE_POINT, "Missing timeline"); surface->pending.rejected = true; return; } |