(web) after capture is called on emscripten builds, request the render thread to exit/resume to yield to the browser so the frame is committed
This commit is contained in:
@@ -350,7 +350,13 @@ extern "C"
|
|||||||
[=]() mutable
|
[=]() mutable
|
||||||
{
|
{
|
||||||
Engine_execute(tEngine);
|
Engine_execute(tEngine);
|
||||||
PROXY(onComplete(requestId));
|
std::packaged_task<void()> callback(
|
||||||
|
[=]() mutable
|
||||||
|
{
|
||||||
|
PROXY(onComplete(requestId));
|
||||||
|
});
|
||||||
|
_renderThread->add_task(callback);
|
||||||
|
_renderThread->restart();
|
||||||
});
|
});
|
||||||
auto fut = _renderThread->add_task(lambda);
|
auto fut = _renderThread->add_task(lambda);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user