[whatwg] Canvas.getContext error handling

Ian Hickson ian at hixie.ch
Tue Apr 12 00:06:53 PDT 2011


On Mon, 11 Apr 2011, Glenn Maynard wrote:
>
> Now, that's a problem for WebGL, because it's not possible to tell in 
> advance whether the underlying rendering context can be created.

It would be helpful if someone could explain what conditions could lead to 
a situation where getContext() could fail to return a WebGL context. Is it 
something the author can do anything about, or is it only likely to happen 
in situations where the right response from the author is "try reloading 
the page until it works"?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list