Oh, I see, so that was extra handwritten JS.

Yes, you can get the emscripten context from Module.ctx (recent emscripten
also defines var GLctx for it).

- Alon



On Sat, Jan 18, 2014 at 10:23 AM, Mark Callow <[email protected]>wrote:

>  On 2014/01/17 17:21, Alon Zakai wrote:
>
>  It looks like emscripten currently looks for webgl-experimental and then
> tries webgl if the first failed.
>
>  I don't understand the situation here though, what causes the two
> different ids? We just do canvas.getContext with the id once, I'm not sure
> where another id could get into the picture and cause confusion?
>
>   The OP added JS to enable the depth texture extension and that JS is
> calling canvas.getContext(). Is there a better way to get the context that
> Emscripten created?
>
> Regards
>
>     -Mark
> --
>  注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合が有ります。正式なメール受信者では無い場合はメール複製、
> 再配信または情報の使用を固く禁じております。エラー、手違いでこのメールを受け取られましたら削除を行い配信者にご連絡をお願いいたし ます.
>
> NOTE: This electronic mail message may contain confidential and privileged
> information from HI Corporation. If you are not the intended recipient, any
> disclosure, photocopying, distribution or use of the contents of the
> received information is prohibited. If you have received this e-mail in
> error, please notify the sender immediately and permanently delete this
> message and all related copies.
>
> --
> 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/groups/opt_out.
>

-- 
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/groups/opt_out.

Reply via email to