Strange, this (setting Module.canvas and Module.useWebGL) shouldn't be 
necessary.

However there have been recent changes how the canvas name is resolved 
(e.g. it is no longer valid to use a zero), maybe this is an unintended 
side effect, or not all places have been fixed yet.

To be clear:

emscripten_webgl_create_context(0, ...)

...is no longer allowed to lookup the canvas from Module.canvas, there must 
now be a canvas identifier, for instance:

emscripten_webgl_create_context("canvas", ...)

...to lookup the canvas element by id.

Cheers,
-Floh.

On Thursday, 7 March 2019 21:41:19 UTC+1, Connor wrote:
>
> In case anyone is having problems getting this working (like me the past 
> day),
>
> don't forget to add
>
> <script>
> var Module = {
> canvas: document.getElementById('canvas'),
> useWebGL: true // Don't forget to add this
> };
> </script>
>
> I hope that helps someone!
>

-- 
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