improve index

This commit is contained in:
41666 2023-10-01 13:20:05 -04:00
parent f1622d49f4
commit ea4210526d
5 changed files with 15 additions and 10 deletions

View file

@ -12,12 +12,12 @@ export class Shader {
this.gl.shaderSource(shader, source);
this.gl.compileShader(shader);
if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) {
throw new Error(
"An error occurred compiling the shaders: " +
this.gl.getShaderInfoLog(shader)
);
}
// if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) {
// throw new Error(
// "An error occurred compiling the shaders: " +
// this.gl.getShaderInfoLog(shader)
// );
// }
this.gl.attachShader(this.program, shader);