mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
Lots of Android fixes and stubs. Increase SDL log level on Android. Add GL context loss handling.
This commit is contained in:
@@ -189,4 +189,13 @@ namespace PLSysCalls
|
||||
{
|
||||
PortabilityLayer::SuspendApplication(PortabilityLayer::HostSuspendCallID_ForceSyncFrame, nullptr, nullptr);
|
||||
}
|
||||
|
||||
void RunOnVOSThread(void(*callback)(void *context), void *context)
|
||||
{
|
||||
PortabilityLayer::HostSuspendCallArgument args[2];
|
||||
args[0].m_functionPtr = callback;
|
||||
args[1].m_pointer = context;
|
||||
|
||||
PortabilityLayer::SuspendApplication(PortabilityLayer::HostSuspendCallID_CallOnVOSThread, args, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user