mirror of
https://github.com/wiiu-env/NotificationModule.git
synced 2025-06-10 07:12:36 +02:00
make sure gOverlayFrame is valid
This commit is contained in:
@ -72,6 +72,9 @@ void drawScreenshotSavedTexture2(GX2ColorBuffer *colorBuffer, GX2ScanTarget scan
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void TryAddFromQueue() {
|
static void TryAddFromQueue() {
|
||||||
|
if (!gOverlayFrame) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
std::lock_guard overlay_lock(gOverlayFrameMutex);
|
std::lock_guard overlay_lock(gOverlayFrameMutex);
|
||||||
// Add notification that had been called before the overlay was ready
|
// Add notification that had been called before the overlay was ready
|
||||||
for (const auto ¬ification : gOverlayQueueDuringStartup) {
|
for (const auto ¬ification : gOverlayQueueDuringStartup) {
|
||||||
|
Reference in New Issue
Block a user