|
@@ -19,16 +19,18 @@
|
|
|
to your javascript and run the following before attempting to render anything.
|
|
|
</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>
|
|
|
</html>
|