Hi,
Is this forum alive?
I am reading the first chapters of the book, and noticed the
gl.deleteShader call has been used on listing 2-1 but not on
2-2. So far can't tell if the book will eventually shed light on this.
Any hints?
Listing 2-1:
Code:
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
alert("Error compiling shader" + gl.getShaderInfoLog(shader));
gl.deleteShader(shader);
return null;
}
Listing 2-2:
Code:
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
alert(gl.getShaderInfoLog(shader));
return null;
}
Thanks,
Everton