Implemented ANGLE on mac machines
This commit is contained in:
@@ -35,8 +35,9 @@ dependencies {
|
||||
|
||||
if(enableGraalNative == 'true') {
|
||||
implementation "io.github.berstanio:gdx-svmhelper-backend-lwjgl3:$graalHelperVersion"
|
||||
|
||||
}
|
||||
}
|
||||
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
|
||||
implementation "com.badlogicgames.gdx:gdx-lwjgl3-angle:$gdxVersion"
|
||||
}
|
||||
|
||||
def os = System.properties['os.name'].toLowerCase(Locale.ROOT)
|
||||
|
||||
@@ -41,7 +41,12 @@ public class Lwjgl3Launcher {
|
||||
//// You can choose to add the following line and the mentioned dependency if you want; they
|
||||
//// are not intended for games that use GL30 (which is compatibility with OpenGL ES 3.0).
|
||||
//// Know that it might not work well in some cases.
|
||||
// configuration.setOpenGLEmulation(Lwjgl3ApplicationConfiguration.GLEmulation.ANGLE_GLES20, 0, 0);
|
||||
String os = System.getProperty("os.name").toLowerCase();
|
||||
if (os.contains("mac")) {
|
||||
configuration.setOpenGLEmulation(
|
||||
Lwjgl3ApplicationConfiguration.GLEmulation.ANGLE_GLES20, 0, 0
|
||||
);
|
||||
}
|
||||
|
||||
return configuration;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user