Kaynağa Gözat

Wrong call for create_offscreen_gl

We need to use `CallVoidMethod` instead of `CallBooleanMethod` to call `create_offscreen_gl`.
Bastiaan Olij 3 yıl önce
ebeveyn
işleme
4df4d72caf
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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);
 	}
 }