Clear SDL_PROP_WINDOW_ANDROID_WINDOW_POINTER when ANativeWindow is freed (#16024)
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s

This commit is contained in:
Hadrian Tang
2026-07-18 14:59:22 -07:00
committed by GitHub
parent f52f31ef5a
commit 8319d69f72
+1
View File
@@ -1313,6 +1313,7 @@ retry:
#endif
if (data->native_window) {
SDL_SetPointerProperty(SDL_GetWindowProperties(Android_Window), SDL_PROP_WINDOW_ANDROID_WINDOW_POINTER, NULL);
ANativeWindow_release(data->native_window);
data->native_window = NULL;
}