Android: Replace emulation rotation crash workaround with proper fix
The workaround was added in0446a58. The underlying problem is that we must not destroy the surface while the video backend is initializing, otherwise the video backend may reference nullptr. I've also cleaned up the logic for when to destroy the surface. Note that the comment in EmulationFragment.java about only being able to destroy the surface when emulation is running is not true anymore (due tode632fc, it seems like).
This commit is contained in:
1 parent
0f4c971326
commit
c007dd1852
6 files changed
+36
-24
No files matched your search
@@ -56,6 +56,7 @@ bool WantsDeterminism();
|
||||
// [NOT THREADSAFE] For use by Host only
|
||||
void SetState(State state);
|
||||
State GetState();
|
||||
void WaitUntilDoneBooting();
|
||||
|
||||
void SaveScreenShot(bool wait_for_completion = false);
|
||||
void SaveScreenShot(std::string_view name, bool wait_for_completion = false);
|
||||
|
||||
Reference in new issue
Block a user