[Public WebGL] oes-texture-float conformance

James Robinson [email protected]
Tue May 10 11:26:10 PDT 2011


On Tue, May 10, 2011 at 11:20 AM, Benoit Jacob <[email protected]> wrote:

>
> ----- Original Message -----
> > function renderFrame(gl) {
> > var ext0 = gl.getExtension('foo');
> > var ext1 = gl.getExtension('foo');
> > assert(ext0 == ext1);
> > };
> > Having ext0 != ext1 would be odd. Again, 'get' means get, and no one
> > should have to know that 'getExtension' really means
> > 'createExtension'.
>
> Noone is arguing against that, the test is rather:
>
> function renderFrame(gl) {
>  var ext0 = gl.getExtension('foo');
>   ext0.someNewProperty = 'bar';
>   var ext1 = gl.getExtension('foo');
>  assert(ext0 == ext1);
> };
>

Isn't that testing the same thing?  Every call to context.getExtension(str)
with the same value for 'str' must return the same object, just as every
call to document.getElementById(str) that returns the same DOM node must
return the same script object (as far as script can observe, anyway).

- James


>
> Benoit
> -----------------------------------------------------------
> You are currently subscribed to [email protected]
> To unsubscribe, send an email to [email protected] with
> the following command in the body of your email:
> unsubscribe public_webgl
> -----------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://khronos.org/pipermail/public_webgl_khronos.org/attachments/20110510/f9e74fc1/attachment.html>


More information about the public_webgl mailing list