Changes between Version 2 and Version 3 of webgl
- Timestamp:
- Oct 4, 2013, 4:15:09 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
webgl
v2 v3 37 37 38 38 if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) { 39 alert( “Error compiling shader”+ gl.getShaderInfoLog(shader));39 alert("Error compiling shader" + gl.getShaderInfoLog(shader)); 40 40 gl.deleteShader(shader); 41 41 return null; … … 110 110 } 111 111 </script> 112 113 </head> 114 112 115 113 <canvas id="myGLCanvas" width="500" height="500"></canvas> 116 114 <form><input type="button" value="Draw" onclick="startup()"/></form>