2014-05-07 13:41 GMT-04:00 Boris Zbarsky <bzbar...@mit.edu>:

> On 5/7/14, 12:34 PM, Ehsan Akhgari wrote:
>
>> Implementations are free to return a context that implements a higher
>> version, should that be appropriate in the future, but never lower.
>>
>
> As pointed out, this fails the explicit opt-in bit.
>
> There is also another problem here.  If we go with this setup but drop the
> "may return higher version" bit, how can a consumer handed a
> WebGLRenderingContext tell whether v2 APIs are OK to use with it short of
> trying one and having it throw?  Do we want to expose the context version
> on the context somehow?
>

The idea is that if getContext("webgl", {version : N}) returns non-null,
then the resulting context is guaranteed to be WebGL version N, so that no
other versioning mechanism is needed.

Benoit



>
> This is only an issue if the code being handed the context and the code
> that did the getContext() call are not tightly cooperating, of course.
>
> -Boris
>
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to