We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0edf71 + b3f3dd6 commit 4bcb1dfCopy full SHA for 4bcb1df
docs/manual/en/introduction/WebGL-compatibility-check.html
@@ -15,16 +15,16 @@ <h1>[name]</h1><br />
15
</p>
16
17
<p>
18
- Add [link:https://github.com/mrdoob/three.js/blob/master/examples/js/Detector.js]
+ Add [link:https://github.com/mrdoob/three.js/blob/master/examples/js/WebGL.js]
19
to your javascript and run the following before attempting to render anything.
20
21
22
<code>
23
-if (Detector.webgl) {
+if (WEBGL.isWebGLAvailable()) {
24
// Initiate function or other initializations here
25
animate();
26
} else {
27
- var warning = Detector.getWebGLErrorMessage();
+ var warning = WEBGL.getWebGLErrorMessage();
28
document.getElementById('container').appendChild(warning);
29
}
30
</code>
0 commit comments