Clear SDL_PROP_WINDOW_ANDROID_WINDOW_POINTER when ANativeWindow is freed (#16024)

This commit is contained in:
Hadrian Tang
2026-07-19 05:59:22 +08:00
committed by GitHub
parent f52f31ef5a
commit 8319d69f72

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