From d1550357ce1cc3ca7cb247b974842f88da59ff98 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 21 Jun 2019 14:10:04 +0200 Subject: [PATCH] fix verify failed when switching to overview (app list) on android --- core/hw/pvr/ta_ctx.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/hw/pvr/ta_ctx.cpp b/core/hw/pvr/ta_ctx.cpp index 31e80b07e..bb3dafd24 100644 --- a/core/hw/pvr/ta_ctx.cpp +++ b/core/hw/pvr/ta_ctx.cpp @@ -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(); }