mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 07:05:40 -04:00
Update input_bridge_v3.c
Forget to revert the wrong replacement.
This commit is contained in:
parent
cec4d56c9e
commit
08863de824
@ -420,13 +420,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSetWindowAttrib(
|
|||||||
return; // nothing to do yet
|
return; // nothing to do yet
|
||||||
}
|
}
|
||||||
|
|
||||||
jclass glfwClazz = (*env)->FindClass(env, "org/lwjgl/glfw/GLFW");
|
jclass glfwClazz = (*runtimeJNIEnvPtr_JRE)->FindClass(runtimeJNIEnvPtr_JRE, "org/lwjgl/glfw/GLFW");
|
||||||
assert(glfwClazz != NULL);
|
assert(glfwClazz != NULL);
|
||||||
jmethodID glfwMethod = (*env)->GetStaticMethodID(env, glfwClazz, "glfwSetWindowAttrib", "(JII)V");
|
jmethodID glfwMethod = (*runtimeJNIEnvPtr_JRE)->GetStaticMethodID(runtimeJNIEnvPtr_JRE, glfwClazz, "glfwSetWindowAttrib", "(JII)V");
|
||||||
assert(glfwMethod != NULL);
|
assert(glfwMethod != NULL);
|
||||||
|
|
||||||
(*env)->CallStaticVoidMethod(
|
(*runtimeJNIEnvPtr_JRE)->CallStaticVoidMethod(
|
||||||
env,
|
runtimeJNIEnvPtr_JRE,
|
||||||
glfwClazz, glfwMethod,
|
glfwClazz, glfwMethod,
|
||||||
(jlong) showingWindow, attrib, value
|
(jlong) showingWindow, attrib, value
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user