mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 22:26:56 -04:00
Little cleanup
This commit is contained in:
parent
44c0d260bf
commit
272f6474b7
@ -155,22 +155,6 @@ public class MainActivity extends LoggableActivity implements OnTouchListener, O
|
||||
|
||||
setTitle("Minecraft " + mProfile.getVersion());
|
||||
|
||||
//System.loadLibrary("gl4es");
|
||||
/*
|
||||
if (mVersionInfo.arguments != null) {
|
||||
System.loadLibrary("lwjgl32");
|
||||
System.loadLibrary("lwjgl_opengl32");
|
||||
System.loadLibrary("lwjgl_stb32");
|
||||
}
|
||||
*/
|
||||
|
||||
if (mVersionInfo.arguments == null) {
|
||||
// Minecraft 1.12 and below
|
||||
|
||||
// TODO uncomment after fix
|
||||
// SecondaryDexLoader.install(getClassLoader(), Arrays.asList(new File[]{new File(Tools.libraries + "/" + Tools.artifactToPath("org.lwjgl", "lwjglboardwalk", "2.9.1"))}), optDir);
|
||||
}
|
||||
|
||||
this.displayMetrics = Tools.getDisplayMetrics(this);
|
||||
CallbackBridge.windowWidth = displayMetrics.widthPixels / scaleFactor;
|
||||
CallbackBridge.windowHeight = displayMetrics.heightPixels / scaleFactor;
|
||||
|
@ -89,7 +89,8 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_GLFW_nativeEglMakeCurrent(JNIEnv*
|
||||
EGL_GREEN_SIZE, 8,
|
||||
EGL_BLUE_SIZE, 8,
|
||||
EGL_ALPHA_SIZE, 8,
|
||||
EGL_DEPTH_SIZE, 16,
|
||||
// Minecraft required on initial 24
|
||||
EGL_DEPTH_SIZE, 24, // 16
|
||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
|
||||
EGL_NONE
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user