WebGL resources are not shared between contexts/canvases, so you will need
to upload the resources to both of the contexts. There is a draft WebGL
extension at
https://www.khronos.org/registry/webgl/extensions/WEBGL_shared_resources/
which aims to achieve this, but that has not yet been promoted to approved
status. You could try pinging in public webgl mailing list about what the
status of its development is. (drafts sometimes are quite rough proposals
and not intended to be finalized as-is, not sure if that's the case here)

2017-05-15 11:31 GMT+03:00 Alon Faraj <[email protected]>:

> I have a texture that I render to 2 canvas.
> First is 2S and the other is 3D.
> When I render to one of them everythong works good, but when I render to
> coth canvas, there are visual issues, parts od the textures are black or
> disapear etc.
> Is there anything I need to do like enable shared context or something?
>
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to