Little cleanup

This commit is contained in:
khanhduytran0 2020-10-03 13:04:18 +07:00
parent 44c0d260bf
commit 272f6474b7
2 changed files with 2 additions and 17 deletions

View File

@ -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;

View File

@ -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
};