mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
macOS: fix crash on launch when opengl is used
This commit is contained in:
+3
-1
@@ -26,8 +26,10 @@
|
|||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
#import <QuartzCore/CAMetalLayer.h>
|
#import <QuartzCore/CAMetalLayer.h>
|
||||||
|
|
||||||
|
#if __has_include(<SDL3/SDL.h>)
|
||||||
|
#include <SDL3/SDL.h>
|
||||||
|
#else
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
#if !SDL_VERSION_ATLEAST(3, 0, 0)
|
|
||||||
#include <SDL_syswm.h>
|
#include <SDL_syswm.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user