소스 검색

Wrong call for create_offscreen_gl

We need to use `CallVoidMethod` instead of `CallBooleanMethod` to call `create_offscreen_gl`.
Bastiaan Olij 3 년 전
부모
커밋
4df4d72caf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform/android/java_godot_wrapper.cpp

+ 1 - 1
platform/android/java_godot_wrapper.cpp

@@ -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);
 	}
 }