Skip to content

Commit

Permalink
Fallback to OpenGL if gamelink not available (macOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Oct 31, 2023
1 parent 07f0a9c commit 2c08595
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/output/output_gamelink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include "mixer.h"
#include "mapper.h"
#include "../gamelink/scancodes_windows.h"
#include "../output/output_surface.h"
#include "output/output_surface.h"
#include "output/output_opengl.h"
#include <output/output_tools_xbrz.h>

using namespace std;
Expand All @@ -36,9 +37,14 @@ void OUTPUT_GAMELINK_Select()
MessageBoxA( NULL, "ERROR: Game Link output disabled.",
"DOSBox \"Game Link\" Error", MB_OK | MB_ICONSTOP );
#else // WIN32
#if defined(MACOSX) && !defined(__arm64__) && C_OPENGL
LOG_MSG( "OUTPUT_GAMELINK: Not enabled via `gamelink master = true`, falling back to `output=opengl`." );
OUTPUT_OPENGL_Select(GLBilinear);
#else // MACOSX
LOG_MSG( "OUTPUT_GAMELINK: Not enabled via `gamelink master = true`, falling back to `output=surface`." );
#endif // WIN32
OUTPUT_SURFACE_Select();
#endif //!MACOSX
#endif
return;
}

Expand Down

0 comments on commit 2c08595

Please sign in to comment.