Skip to content

Commit

Permalink
Merge pull request #76464 from m4gr3d/fix_gl_window_resize_main
Browse files Browse the repository at this point in the history
Fix issue with resizing the display on Android when using the compatibility renderer
  • Loading branch information
akien-mga committed Apr 26, 2023
2 parents 0e94757 + b438b4a commit fdb058f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions platform/android/java_godot_lib_jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,9 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_resize(JNIEnv *env, j
if (p_surface) {
ANativeWindow *native_window = ANativeWindow_fromSurface(env, p_surface);
os_android->set_native_window(native_window);

DisplayServerAndroid::get_singleton()->reset_window();
DisplayServerAndroid::get_singleton()->notify_surface_changed(p_width, p_height);
}
DisplayServerAndroid::get_singleton()->reset_window();
DisplayServerAndroid::get_singleton()->notify_surface_changed(p_width, p_height);
}
}
}
Expand Down

0 comments on commit fdb058f

Please sign in to comment.