more math
This commit is contained in:
parent
ea4210526d
commit
76c007f5b1
3 changed files with 34 additions and 15 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue