macOS: fix crash on launch when opengl is used

This commit is contained in:
Sasha Szpakowski
2024-10-12 12:32:39 -03:00
parent aaccc6d7f0
commit 910af324dd
+3 -1
View File
@@ -26,8 +26,10 @@
#import <Cocoa/Cocoa.h>
#import <QuartzCore/CAMetalLayer.h>
#if __has_include(<SDL3/SDL.h>)
#include <SDL3/SDL.h>
#else
#include <SDL.h>
#if !SDL_VERSION_ATLEAST(3, 0, 0)
#include <SDL_syswm.h>
#endif