From 17c74e3e6bbe83812e638f87c88e958cab55e671 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 1 Feb 2021 15:41:00 +0100 Subject: [PATCH] Don't crash when KMS rejects client FB If the client provides a DMA-BUF that cannot be scanned out, don't crash. We should just fallback to composition instead. --- src/steamcompmgr.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 46ff4c2..7abc9fd 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -609,7 +609,6 @@ import_commit ( struct wlr_buffer *buf, struct wlr_dmabuf_attributes *dmabuf, co if ( BIsNested() == False ) { commit.fb_id = drm_fbid_from_dmabuf( &g_DRM, buf, dmabuf ); - assert( commit.fb_id != 0 ); } commit.vulkanTex = vulkan_create_texture_from_dmabuf( dmabuf );