Skip to content
Permalink
Browse files

[e] (0) Mention the case of getContext('webgl') returning null due to…

… hardware limitations.

git-svn-id: http://svn.whatwg.org/webapps@6130 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed May 12, 2011
1 parent 3fbd573 commit 114c8547cfc22aefe17ca0b7ac7e636921beb87d
Showing with 47 additions and 9 deletions.
  1. +15 −3 complete.html
  2. +15 −3 index
  3. +17 −3 source
<ol><li><p>Let <var title="">contextId</var> be the first argument to
the method.</li>

<li><p>If <var title="">contextId</var> is not the name of a
context supported by the user agent, return null and abort these
steps.</li>
<li>

<p>If <var title="">contextId</var> is not the name of a context
supported by the user agent, return null and abort these
steps.</p>

<p class=note>An example of this would be a user agent that
theoretically supports the "<code title=canvas-context-webgl>webgl</code>" 3D context, in the case
where the platform does not have hardware support for OpenGL and
the user agent does not have a software OpenGL implementation.
Despite the user agent recognising the "<code title=canvas-context-webgl>webgl</code>" name, it would return
null at this step because that context is not, in practice,
supported at the time of the call.</p>

</li>

<li><p>If the element has a <a href=#primary-context>primary context</a> and that
context's entry in the <a href=http://wiki.whatwg.org/wiki/CanvasContexts>WHATWG Wiki
18 index
<ol><li><p>Let <var title="">contextId</var> be the first argument to
the method.</li>

<li><p>If <var title="">contextId</var> is not the name of a
context supported by the user agent, return null and abort these
steps.</li>
<li>

<p>If <var title="">contextId</var> is not the name of a context
supported by the user agent, return null and abort these
steps.</p>

<p class=note>An example of this would be a user agent that
theoretically supports the "<code title=canvas-context-webgl>webgl</code>" 3D context, in the case
where the platform does not have hardware support for OpenGL and
the user agent does not have a software OpenGL implementation.
Despite the user agent recognising the "<code title=canvas-context-webgl>webgl</code>" name, it would return
null at this step because that context is not, in practice,
supported at the time of the call.</p>

</li>

<li><p>If the element has a <a href=#primary-context>primary context</a> and that
context's entry in the <a href=http://wiki.whatwg.org/wiki/CanvasContexts>WHATWG Wiki
20 source
<li><p>Let <var title="">contextId</var> be the first argument to
the method.</p></li>

<li><p>If <var title="">contextId</var> is not the name of a
context supported by the user agent, return null and abort these
steps.</p></li>
<li>

<p>If <var title="">contextId</var> is not the name of a context
supported by the user agent, return null and abort these
steps.</p>

<p class="note">An example of this would be a user agent that
theoretically supports the "<code
title="canvas-context-webgl">webgl</code>" 3D context, in the case
where the platform does not have hardware support for OpenGL and
the user agent does not have a software OpenGL implementation.
Despite the user agent recognising the "<code
title="canvas-context-webgl">webgl</code>" name, it would return
null at this step because that context is not, in practice,
supported at the time of the call.</p>

</li>

<li><p>If the element has a <span>primary context</span> and that
context's entry in the <a

0 comments on commit 114c854

Please sign in to comment.
You can’t perform that action at this time.