Oh, so in normal non-WebGL GL, there isn't a method to enable an extension?
They are all enabled by default? Then yes, it sounds like we need to add an
option to enable an extension, emscripten_enable_webgl_ext(const char*) or
such. I'm surprised we didn't run into this before. I think emscripten
might already be enabling some extensions by default, that sounds familiar.

- Alon



On Tue, Aug 26, 2014 at 10:39 AM, Mark Callow <[email protected]>
wrote:

>  On 2014/08/24 10:53, Robert Goulet wrote:
>
> It is supported by my browser. So basically I can just call glDrawBuffers
> and it should just work? Thank you.
>
>  In WebGL, extensions must be enabled before use otherwise errors will be
> raised. WEBGL_draw_buffers is obviously a WebGL extension.
>
> If Emscripten wishes to support use of WebGL extensions via glGetString &
> eglGetProcAddress, a call to glGetString(GL_EXTENSIONS) would have to both
> return the results of a call to ctx.getSupportedExtensions and it would
> have to enable every extension by calling ctx.getExtension and save the
> returned interfaces somewhere. It would also have to do a lot of other
> magic to convert the enums and functions of an extension to
> storedInterface.anextension.enum and storedInterface.anextension.func
> respectively.
>
> I do not know what Emscripten is doing but enabling all extensions seems
> like unreasonable overhead for most apps as the number using all extensions
> can probably be counted on the fingers of one hand. Providing an equivalent
> to getExtension seems like a better idea, though I'm not sure how to
> present that in c.
>
> 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/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