Skip to content

Commit

Permalink
steamcompmgr: Include composite debug in full screen buffer screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed May 20, 2024
1 parent eb88ef8 commit b3c3ac7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2607,7 +2607,11 @@ paint_all(bool async)
frameInfo.outputEncodingEOTF = bHDRScreenshot ? EOTF_PQ : EOTF_Gamma22;

uint32_t uCompositeDebugBackup = g_uCompositeDebug;
g_uCompositeDebug = 0;

if ( oScreenshotInfo->eScreenshotType != GAMESCOPE_CONTROL_SCREENSHOT_TYPE_SCREEN_BUFFER )
{
g_uCompositeDebug = 0;
}

std::optional<uint64_t> oScreenshotSeq;
if ( drmCaptureFormat == DRM_FORMAT_NV12 )
Expand All @@ -2618,7 +2622,10 @@ paint_all(bool async)
else
oScreenshotSeq = vulkan_screenshot( &frameInfo, pScreenshotTexture, nullptr );

g_uCompositeDebug = uCompositeDebugBackup;
if ( oScreenshotInfo->eScreenshotType != GAMESCOPE_CONTROL_SCREENSHOT_TYPE_SCREEN_BUFFER )
{
g_uCompositeDebug = uCompositeDebugBackup;
}

if ( !oScreenshotSeq )
{
Expand Down

0 comments on commit b3c3ac7

Please sign in to comment.