mirror of
https://github.com/wiiu-env/NotificationModule.git
synced 2024-11-17 01:09:16 +01:00
make sure gOverlayFrame is valid
This commit is contained in:
parent
5801f61ec7
commit
36993e1630
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user