mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 14:16:58 -04:00
Fix crash on sending input event too early
This commit is contained in:
parent
389919d81a
commit
48ece6f665
@ -35,7 +35,7 @@ void attachThreadIfNeed(bool* isAttached, JNIEnv** secondJNIEnvPtr) {
|
||||
}
|
||||
|
||||
void getJavaInputBridge(jclass* clazz, jmethod* method) {
|
||||
if (*method == NULL) {
|
||||
if (*method == NULL && secondJNIEnv != NILL) {
|
||||
*clazz = (*secondJNIEnv)->FindClass(secondJNIEnv, "org/lwjgl/glfw/CallbackBridge");
|
||||
*method = (*secondJNIEnv)->GetStaticMethodID(secondJNIEnv, *clazz, "receiveCallback", "(ILjava/lang/String;)V");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user