|
@@ -19,16 +19,14 @@
|
|
to your javascript and run the following before attempting to render anything.
|
|
to your javascript and run the following before attempting to render anything.
|
|
</p>
|
|
</p>
|
|
|
|
|
|
-<code>
|
|
|
|
-if (WEBGL.isWebGLAvailable()) {
|
|
|
|
- // Initiate function or other initializations here
|
|
|
|
- animate();
|
|
|
|
-} else {
|
|
|
|
- var warning = WEBGL.getWebGLErrorMessage();
|
|
|
|
- document.getElementById('container').appendChild(warning);
|
|
|
|
-}
|
|
|
|
-</code>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ <code>
|
|
|
|
+ if (WEBGL.isWebGLAvailable()) {
|
|
|
|
+ // Initiate function or other initializations here
|
|
|
|
+ animate();
|
|
|
|
+ } else {
|
|
|
|
+ var warning = WEBGL.getWebGLErrorMessage();
|
|
|
|
+ document.getElementById('container').appendChild(warning);
|
|
|
|
+ }
|
|
|
|
+ </code>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|