more math

This commit is contained in:
41666 2023-10-01 13:35:20 -04:00
parent ea4210526d
commit 76c007f5b1
3 changed files with 34 additions and 15 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);