aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-06 13:32:53 +0200
committerVaxry <[email protected]>2024-08-06 13:32:53 +0200
commitb0437c9f76dc3533eed23f5a9aec186d4a32f4d3 (patch)
treec6c1e496c50144fa7a8930725973e866ce62c4ac
parent4341ed594374f170b46f59867936baebd8482459 (diff)
downloadHyprland-b0437c9f76dc3533eed23f5a9aec186d4a32f4d3.tar.gz
Hyprland-b0437c9f76dc3533eed23f5a9aec186d4a32f4d3.zip
fix nvidia stuff with egl-wayland
-rw-r--r--src/protocols/DRMSyncobj.cpp8
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;
}