fix lock issue on iOS

This commit is contained in:
2018-08-09 17:23:32 +02:00
parent ba81f97e99
commit 94fa4022f0

View File

@@ -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()();