1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Wrong call for create_offscreen_gl

We need to use `CallVoidMethod` instead of `CallBooleanMethod` to call `create_offscreen_gl`.
This commit is contained in:
Bastiaan Olij
2022-01-12 11:01:24 +11:00
committed by GitHub
parent e805ec8574
commit 4df4d72caf

View File

@@ -144,7 +144,7 @@ bool GodotJavaWrapper::create_offscreen_gl(JNIEnv *p_env) {
void GodotJavaWrapper::destroy_offscreen_gl(JNIEnv *p_env) {
if (_destroy_offscreen_gl) {
p_env->CallBooleanMethod(godot_instance, _destroy_offscreen_gl);
p_env->CallVoidMethod(godot_instance, _destroy_offscreen_gl);
}
}