sw_engine renderer: fix to success SwCanvas Unit Test.

render init count shouldn't be counted when it's in a fail-case.
This commit is contained in:
Hermet Park 2021-06-07 18:09:35 +09:00
parent eda022365f
commit 50b2b1c7de

View file

@ -616,7 +616,10 @@ bool SwRenderer::init(uint32_t threads)
//Share the memory pool among the renderer //Share the memory pool among the renderer
globalMpool = mpoolInit(threads); globalMpool = mpoolInit(threads);
if (!globalMpool) return false; if (!globalMpool) {
--initEngineCnt;
return false;
}
return true; return true;
} }