diff --git a/app/src/main/jni/egl_bridge.c b/app/src/main/jni/egl_bridge.c index bfdf352ea..de8a41871 100644 --- a/app/src/main/jni/egl_bridge.c +++ b/app/src/main/jni/egl_bridge.c @@ -31,20 +31,18 @@ JNIEXPORT void JNICALL Java_net_kdt_pojavlaunch_JREUtils_setupBridgeWindow(JNIEn // Called from JNI_OnLoad of liblwjgl_opengl32 void pojav_openGLOnLoad() { - FILE *fp = fopen ("/sdcard/games/.minecraft/eglout.txt", "w+"); - - fprintf(fp, "ANativeWindow pointer = %p\n", potatoBridge.androidWindow); + printf("ANativeWindow pointer = %p\n", potatoBridge.androidWindow); potatoBridge.eglDisplay = eglGetDisplay(potatoBridge.androidDisplay); if (potatoBridge.eglDisplay == EGL_NO_DISPLAY) { - fprintf(fp, "Error: eglGetDefaultDisplay() failed: %p\n", eglGetError()); + printf("Error: eglGetDefaultDisplay() failed: %p\n", eglGetError()); return; // -1; } eglMakeCurrent(potatoBridge.eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); if (!eglInitialize(potatoBridge.eglDisplay, NULL, NULL)) { - fprintf(fp, "Error: eglInitialize() failed\n"); + printf("Error: eglInitialize() failed\n"); return; // -2; } @@ -68,7 +66,7 @@ void pojav_openGLOnLoad() { EGLint vid; if (!eglChooseConfig(potatoBridge.eglDisplay, attribs, &config, 1, &num_configs)) { - fprintf(fp, "Error: couldn't get an EGL visual config\n"); + printf("Error: couldn't get an EGL visual config\n"); return; // -3; } @@ -76,7 +74,7 @@ void pojav_openGLOnLoad() { assert(num_configs > 0); if (!eglGetConfigAttrib(potatoBridge.eglDisplay, config, EGL_NATIVE_VISUAL_ID, &vid)) { - fprintf(fp, "Error: eglGetConfigAttrib() failed\n"); + printf("Error: eglGetConfigAttrib() failed\n"); return; // -4; } @@ -84,7 +82,7 @@ void pojav_openGLOnLoad() { potatoBridge.eglContext = eglCreateContext(potatoBridge.eglDisplay, config, EGL_NO_CONTEXT, ctx_attribs); if (!potatoBridge.eglContext) { - fprintf(fp, "Error: eglCreateContext failed\n"); + printf("Error: eglCreateContext failed\n"); return; // -5; } @@ -98,7 +96,7 @@ void pojav_openGLOnLoad() { potatoBridge.eglSurface = eglCreateWindowSurface(potatoBridge.eglDisplay, config, potatoBridge.androidWindow, NULL); if (!potatoBridge.eglSurface) { - fprintf(fp, "Error: eglCreateWindowSurface failed: %p\n", eglGetError()); + printf("Error: eglCreateWindowSurface failed: %p\n", eglGetError()); return; // -6; } @@ -109,14 +107,14 @@ void pojav_openGLOnLoad() { assert(val & EGL_WINDOW_BIT); } - fprintf(fp, "EGLContext=%p, EGLDisplay=%p, EGLSurface=%p\n", + printf("EGLContext=%p, EGLDisplay=%p, EGLSurface=%p\n", potatoBridge.eglContext, potatoBridge.eglDisplay, potatoBridge.eglSurface ); if (eglMakeCurrent(potatoBridge.eglDisplay, potatoBridge.eglSurface, potatoBridge.eglSurface, potatoBridge.eglContext) == EGL_FALSE) { - fprintf(fp, "Error: eglMakeCurrent() failed: %p\n", eglGetError()); + printf("Error: eglMakeCurrent() failed: %p\n", eglGetError()); } // Test diff --git a/app/src/main/jniLibs/armeabi-v7a/liblwjgl_opengl.so b/app/src/main/jniLibs/armeabi-v7a/liblwjgl_opengl.so index 3ce1fe6dc..16a712fe1 100644 Binary files a/app/src/main/jniLibs/armeabi-v7a/liblwjgl_opengl.so and b/app/src/main/jniLibs/armeabi-v7a/liblwjgl_opengl.so differ diff --git a/app/src/main/jniLibs_disabled/arm64-v8a/liblwjgl_opengl.so b/app/src/main/jniLibs_disabled/arm64-v8a/liblwjgl_opengl.so index 2c4e1526f..e0f2bffaf 100644 Binary files a/app/src/main/jniLibs_disabled/arm64-v8a/liblwjgl_opengl.so and b/app/src/main/jniLibs_disabled/arm64-v8a/liblwjgl_opengl.so differ diff --git a/app/src/main/jniLibs_disabled/x86/liblwjgl_opengl.so b/app/src/main/jniLibs_disabled/x86/liblwjgl_opengl.so index 57b3f37c5..83c0b0685 100644 Binary files a/app/src/main/jniLibs_disabled/x86/liblwjgl_opengl.so and b/app/src/main/jniLibs_disabled/x86/liblwjgl_opengl.so differ diff --git a/app/src/main/jniLibs_disabled/x86_64/liblwjgl_opengl.so b/app/src/main/jniLibs_disabled/x86_64/liblwjgl_opengl.so index 487cedaf4..25a3c0ef5 100644 Binary files a/app/src/main/jniLibs_disabled/x86_64/liblwjgl_opengl.so and b/app/src/main/jniLibs_disabled/x86_64/liblwjgl_opengl.so differ