Skip to content

Commit

Permalink
Fix[egl_bridge]: remove attachEnvs()
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Jan 19, 2025
1 parent 8ff7e08 commit 269c2b3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app_pojavlauncher/src/main/jni/egl_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,12 @@ int pojavInitOpenGL() {

extern void updateMonitorSize(int width, int height);

static void attachEnvs() {
EXTERNAL_API int pojavInit() {
pojav_environ->glfwThreadVmEnv = get_attached_env(pojav_environ->runtimeJavaVMPtr);
if(pojav_environ->glfwThreadVmEnv == NULL) {
printf("Failed to attach Java-side JNIEnv to GLFW thread\n");
return 0;
}
}

EXTERNAL_API int pojavInit() {

ANativeWindow_acquire(pojav_environ->pojavWindow);
pojav_environ->savedWidth = ANativeWindow_getWidth(pojav_environ->pojavWindow);
pojav_environ->savedHeight = ANativeWindow_getHeight(pojav_environ->pojavWindow);
Expand Down

0 comments on commit 269c2b3

Please sign in to comment.