This topic has been discussed
here already, however, there was no final solution.
I have updated my sample now. I see two different behaviors:
Version 1:
- compile with -sOFFSCREENCANVAS_SUPPORT=1 and attrs.renderViaOffscreenBackBuffer = EM_FALSE
- result: no rendering on screen
Version 2:
- compile with -sOFFSCREEN_FRAMEBUFFER and attrs.renderViaOffscreenBackBuffer = EM_TRUE (no OFFSCREENCANVAS_SUPPORT)
- result: rendering on screen as expected
So, am I using OFFSCREENCANVAS_SUPPORT in a wrong way, or is support for offscreenCanvas not yet stable enough? Should I be using Framebuffer instead?
Tested on current versions of Chrome and Firefox on Windows.
Again, any advice is very much appreciated.