W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

[whatwg] Canvas.getContext error handling

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 12 Apr 2011 07:06:53 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1104120704360.25791@ps20323.dreamhostps.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 12 April 2011 00:06:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT