mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 14:05:32 +02:00
Use OpenGL by default on Intel macs
Apparently ANGLE can fail to compile shaders on Intel macs if Metal is chosen.
This commit is contained in:
parent
79bae839de
commit
0135bda50a
2 changed files with 9 additions and 3 deletions
|
@ -15,8 +15,9 @@
|
||||||
// - Enables/disables the extra console window on Windows. It appears by
|
// - Enables/disables the extra console window on Windows. It appears by
|
||||||
// default whenever mkxp-z is started in debug mode.
|
// default whenever mkxp-z is started in debug mode.
|
||||||
// "MKXPZ_MACOS_METAL"
|
// "MKXPZ_MACOS_METAL"
|
||||||
// - Setting this to 0 will force the usage of OpenGL over Metal.
|
// - Setting this will influence the rendering backend used.
|
||||||
// Probably not a good idea unless you have some kind of issue.
|
// Probably not a good idea to mess with it unless you have some kind of issue.
|
||||||
|
// OpenGL is default on x86, and Metal is the default on Apple Silicon.
|
||||||
// "MKXPZ_FOLDER_SELECT"
|
// "MKXPZ_FOLDER_SELECT"
|
||||||
// - Allows the manual selection of the game's folder at startup.
|
// - Allows the manual selection of the game's folder at startup.
|
||||||
// Only works on macOS at the moment.
|
// Only works on macOS at the moment.
|
||||||
|
|
|
@ -297,7 +297,12 @@ try { exp } catch (...) {}
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// Determine whether to use the Metal renderer on macOS
|
// Determine whether to use the Metal renderer on macOS
|
||||||
preferMetalRenderer = isMetalSupported() && getEnvironmentBool("MKXPZ_MACOS_METAL", true);
|
#if defined(__x86_64__)
|
||||||
|
#define METAL_DEFAULT_SETTING false
|
||||||
|
#else
|
||||||
|
#define METAL_DEFAULT_SETTING true
|
||||||
|
#endif
|
||||||
|
preferMetalRenderer = isMetalSupported() && getEnvironmentBool("MKXPZ_MACOS_METAL", METAL_DEFAULT_SETTING);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Determine whether to allow manual selection of a game folder on startup
|
// Determine whether to allow manual selection of a game folder on startup
|
||||||
|
|
Loading…
Add table
Reference in a new issue