Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions layersvt/screenshot/screenshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1868,9 +1868,11 @@ void onQueuePresentKHR(VkQueue queue, VkPresentInfoKHR& presentInfo) {
return;
}

if (std::atomic_load(&pauseCapture) && screenshotWriter->canControlPause()) {
// Wake up screenshot thread to check whether we should unpause screenshot recording
screenshotQueuedCV.notify_one();
if (std::atomic_load(&pauseCapture)) {
if (screenshotWriter && screenshotWriter->canControlPause()) {
// Wake up screenshot thread to check whether we should unpause screenshot recording
screenshotQueuedCV.notify_one();
}
return;
}
if (presentInfo.swapchainCount == 0) {
Expand Down
Loading