GSRunner: Fix surfaceless run on macOS

This commit is contained in:
TellowKrinkle
2025-06-04 20:25:32 -04:00
committed by Ty
parent da4fcffef4
commit 92e190ad6c
+1
View File
@@ -298,6 +298,7 @@ static constexpr short STOP_EVENT_LOOP = 0x100;
void CocoaTools::RunCocoaEventLoop(bool forever)
{
NSDate* end = forever ? [NSDate distantFuture] : [NSDate distantPast];
[NSApplication sharedApplication]; // Ensure NSApp is initialized
while (true)
{ @autoreleasepool {
NSEvent* ev = [NSApp nextEventMatchingMask:NSEventMaskAny