Skip to content

Commit

Permalink
Fix invalid jnienv
Browse files Browse the repository at this point in the history
  • Loading branch information
The Judge committed Dec 19, 2024
1 parent 1b84956 commit a1d6c02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/jni/vloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ JNIEXPORT void JNICALL
Java_org_vivecraft_util_VLoader_setupAndroid(JNIEnv* env, jclass clazz) {
JNIEnv *newEnv;
pojav_environ->dalvikJavaVMPtr->AttachCurrentThread(&newEnv, NULL);

pojav_environ->dalvikJNIEnvPtr_ANDROID = newEnv;
newEnv->CallStaticVoidMethod(pojav_environ->bridgeClazz, pojav_environ->method_stopXR);
pojav_environ->dalvikJNIEnvPtr_ANDROID->CallStaticVoidMethod(pojav_environ->bridgeClazz, pojav_environ->method_stopXR);
}

extern "C"
Expand Down

0 comments on commit a1d6c02

Please sign in to comment.