fix lock issue on iOS
This commit is contained in:
@@ -417,10 +417,14 @@ std::set<UITouch*> ignored_touch;
|
||||
working_list = std::move(tasklist);
|
||||
}
|
||||
|
||||
if (!(App::I.redraw || App::I.animate || !working_list.empty()))
|
||||
return;
|
||||
|
||||
[self async_lock];
|
||||
if (!(App::I.redraw || App::I.animate || !working_list.empty()))
|
||||
{
|
||||
[self.context presentRenderbuffer:GL_FRAMEBUFFER];
|
||||
[self async_unlock];
|
||||
return;
|
||||
}
|
||||
|
||||
while (!working_list.empty())
|
||||
{
|
||||
working_list.front()();
|
||||
|
||||
Reference in New Issue
Block a user