From a3e2e61028e6cf4cdf4bc013b9d1a8288775fd74 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Fri, 15 May 2026 20:14:04 +0200 Subject: [PATCH] steamcompmgr: fix the detection of the .nv12.bin extension for screenshot requests The extension() method returns only the rightmost extension, in that case ".bin", so the check would never match. As a result the format wouldn't be assigned, and the request would always fail with this misleading error message: "Oh no, we ran out of screenshot images. Not actually writing a screenshot." --- src/steamcompmgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index b64d4597dd..d85a1823e9 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -2848,7 +2848,7 @@ paint_all( global_focus_t *pFocus, bool async ) drmCaptureFormat = DRM_FORMAT_XRGB2101010; else if ( path.extension() == ".png" ) drmCaptureFormat = DRM_FORMAT_XRGB8888; - else if ( path.extension() == ".nv12.bin" ) + else if ( path.extension() == ".bin" && path.stem().extension() == ".nv12" ) drmCaptureFormat = DRM_FORMAT_NV12; gamescope::Rc pScreenshotTexture;