Skip to content

Commit 4f41e12

Browse files
committed
Docs: Added missing forceContextRestore method.
1 parent 7fb600b commit 4f41e12

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

docs/api/en/renderers/WebGLRenderer.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,16 @@ <h3>[method:Object extensions.get]( [param:String extensionName] )</h3>
316316
- *WEBGL_compressed_texture_etc1*
317317
</p>
318318

319-
<h3>[method:null forceContextLoss]( )</h3>
319+
<h3>[method:void forceContextLoss]()</h3>
320320
<p>
321321
Simulate loss of the WebGL context. This requires support for the
322322
[link:https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context WEBGL_lose_context] extensions.
323-
According to [link:https://webglstats.com/ WebGLStats], as of February 2016 90% of WebGL enabled devices support this.
323+
</p>
324+
325+
<h3>[method:void forceContextRestore]( )</h3>
326+
<p>
327+
Simulate restore of the WebGL context. This requires support for the
328+
[link:https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context WEBGL_lose_context] extensions.
324329
</p>
325330

326331
<h3>[method:Float getClearAlpha]()</h3>

docs/api/zh/renderers/WebGLRenderer.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,16 @@ <h3>[method:Object extensions.get]( [param:String extensionName] )</h3>
300300
- *WEBGL_compressed_texture_etc1*
301301
</p>
302302

303-
<h3>[method:null forceContextLoss]( )</h3>
303+
<h3>[method:void forceContextLoss]()</h3>
304304
<p>
305305
模拟WebGL环境的丢失。需要支持
306306
[link:https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context WEBGL_lose_context]扩展才能用。
307-
根据[link:https://webglstats.com/ WebGLStats], as of February 2016 90% of WebGL enabled devices support this.
307+
</p>
308+
309+
<h3>[method:void forceContextRestore]( )</h3>
310+
<p>
311+
Simulate restore of the WebGL context. This requires support for the
312+
[link:https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context WEBGL_lose_context] extensions.
308313
</p>
309314

310315
<h3>[method:Float getClearAlpha]()</h3>

0 commit comments

Comments
 (0)