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.
1 parent 539a957 commit fabf31dCopy full SHA for fabf31d
tutorial/sample1/webgl-demo.js
@@ -19,6 +19,7 @@ function start() {
19
gl.clearDepth(1.0); // Clear everything
20
gl.enable(gl.DEPTH_TEST); // Enable depth testing
21
gl.depthFunc(gl.LEQUAL); // Near things obscure far things
22
+ gl.clear(gl.COLOR_BUFFER_BIT); // Clear the color buffer with specified clear color
23
}
24
25
@@ -42,4 +43,4 @@ function initWebGL() {
42
43
if (!gl) {
44
alert("Unable to initialize WebGL. Your browser may not support it.");
45
-}
46
+}
0 commit comments