Fix TaskDispatch on wasm.

This commit is contained in:
Bartosz Taudul 2023-05-07 16:11:18 +02:00
parent 64daca9f79
commit b072dbcdc6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -18,7 +18,7 @@ TimelineController::TimelineController( View& view, Worker& worker, bool threadi
, m_view( view )
, m_worker( worker )
#ifdef __EMSCRIPTEN__
, m_td( 0 )
, m_td( 0, "Render" )
#else
, m_td( threading ? (size_t)std::max( 0, (int)std::thread::hardware_concurrency() - 2 ) : 0, "Render" )
#endif