Another fix

This commit is contained in:
Duy Tran Khanh 2021-01-22 15:49:56 +07:00 committed by GitHub
parent 5fed6177ac
commit 81336fb4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@
* - Implements glfwSetCursorPos() to handle grab camera pos correctly.
*/
#include <stdlib.h>
#include <jni.h>
#include <assert.h>
@ -200,7 +201,7 @@ JNIEXPORT jstring JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeClipboard(JNI
LOGD("Clipboard: Calling 2nd\n");
jstring pasteDst = convertStringJVM(dalvikEnv, env, (jstring) (*dalvikEnv)->CallStaticObjectMethod(dalvikEnv, bridgeClazz, bridgeMethod, action, copyDst));
dalvikJavaVMPtr->DetachCurrentThread(dalvikJavaVMPtr);
(*dalvikJavaVMPtr)->DetachCurrentThread(dalvikJavaVMPtr);
return pasteDst;
}