Skip to content

Commit

Permalink
Merge pull request #2390 from Wang-Yue/patch-1
Browse files Browse the repository at this point in the history
Use OpenGL backend for macOS
  • Loading branch information
nesbox authored Dec 9, 2023
2 parents 271291d + 2df3389 commit 1b76a6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/system/sdl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,9 @@ s32 determineMaximumScale()

static s32 start(s32 argc, char **argv, const char* folder)
{
#if defined(__MACOSX__)
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl");
#endif
int result = SDL_Init(SDL_INIT_VIDEO);
if (result != 0)
{
Expand Down

0 comments on commit 1b76a6e

Please sign in to comment.