Skip to content

Commit

Permalink
macOS: fix crash on launch when opengl is used
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Oct 12, 2024
1 parent aaccc6d commit 910af32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 910af32

Please sign in to comment.