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 3 changed files with 47 additions and 9 deletions.
@@ -33964,9 +33964,21 @@ <h4 id=the-canvas-element><span class=secno>4.8.11 </span>The <dfn id=canvas><co
<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
@@ -33992,9 +33992,21 @@ interface <dfn id=texttrackcue>TextTrackCue</dfn> {
<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
@@ -37465,9 +37465,23 @@ interface <dfn>TextTrackCue</dfn> {
<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.