make sure gOverlayFrame is valid

This commit is contained in:
Maschell 2024-05-06 17:32:29 +02:00
parent 5801f61ec7
commit 36993e1630

View File

@ -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) {