mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 23:10:33 +02:00
After finish(), onDestroy may arrive after a new activity has already been created and resumed, if the user relaunches quickly. The new one sees initialized still set and adopts the native state. The old one's onDestroy then shut down audio and called NativeApp.shutdown(), deleting the graphics context the new render thread was using. Number the activities, and leave the native side alone in onDestroy if a newer one exists. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>