I have an issue with the CreateScreenshotUsingRenderTarget functionality.
So I created an app where you can upload the model and it will be rendered in the scene.
You can see that when loaded I have two buttons, one is to download the png using CreateScreenshotUsingRenderTarget function which works fine.
Other button enables you to upload different file so you can use it in the viewer.
The issue happen when I upload several models one after the other. Everything works fine with the viewer. Models switch and render properly, but when I use downloadPNG button after uploading several files I get multiple prompts for download (one for each model that was uploaded in the viewer)
After every re-upload i dispose engine and the scene. Is there anything else I need to do?
What can I do to get only the latest download prompt, any ideas?