After I copy these changes in your PR to my local Babylon, this error was solved. But the image captured was all black. And it’s also only on the phone that not support OffscreenCanvas
.
And I have tried both CreateScreenshotUsingRenderTargetAsync
and CreateScreenshotAsync
Is it related to Create screenshot generate blank/black image - #11 by mimeeq3d_neal ? But in newer phones, it works.