Skip to content

Commit

Permalink
make sure gOverlayFrame is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed May 6, 2024
1 parent 5801f61 commit 36993e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/function_patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ void drawScreenshotSavedTexture2(GX2ColorBuffer *colorBuffer, GX2ScanTarget scan
}

static void TryAddFromQueue() {
if (!gOverlayFrame) {
return;
}
std::lock_guard overlay_lock(gOverlayFrameMutex);
// Add notification that had been called before the overlay was ready
for (const auto &notification : gOverlayQueueDuringStartup) {
Expand Down

0 comments on commit 36993e1

Please sign in to comment.