1
0
Эх сурвалжийг харах

Clear SDL_PROP_WINDOW_ANDROID_WINDOW_POINTER when ANativeWindow is freed (#16024)

Hadrian Tang 2 сар өмнө
parent
commit
8319d69f72

+ 1 - 0
src/core/android/SDL_android.c

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