Skip to content

Commit

Permalink
Fine fine ill play by the rules JNI
Browse files Browse the repository at this point in the history
  • Loading branch information
The Judge committed Dec 19, 2024
1 parent eeecf38 commit d136d76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/jni/vloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ Java_org_vivecraft_util_VLoader_getEGLConfig(JNIEnv* env, jclass clazz) {
extern "C"
JNIEXPORT void JNICALL
Java_org_vivecraft_util_VLoader_setupAndroid(JNIEnv* env, jclass clazz) {
pojav_environ->dalvikJNIEnvPtr_ANDROID->CallStaticVoidMethod(pojav_environ->bridgeClazz, pojav_environ->method_stopXR);
JNIEnv *newEnv;
pojav_environ->dalvikJavaVMPtr->AttachCurrentThread(&newEnv, NULL);
newEnv->CallStaticVoidMethod(newEnv->FindClass("org/lwjgl/glfw/CallbackBridge"), pojav_environ->method_stopXR);
}

extern "C"
Expand Down

0 comments on commit d136d76

Please sign in to comment.