fix verify failed when switching to overview (app list) on android

This commit is contained in:
Flyinghead 2019-06-21 14:10:04 +02:00
parent f29569cf5d
commit d1550357ce
1 changed files with 7 additions and 5 deletions

View File

@ -198,13 +198,15 @@ bool rend_framePending() {
void FinishRender(TA_context* ctx)
{
verify(ctx == NULL || rqueue == ctx);
mtx_rqueue.Lock();
rqueue = 0;
mtx_rqueue.Unlock();
if (ctx != NULL)
{
verify(rqueue == ctx);
mtx_rqueue.Lock();
rqueue = NULL;
mtx_rqueue.Unlock();
tactx_Recycle(ctx);
}
frame_finished.Set();
}