view/Renderer: code style
This commit is contained in:
parent
ad0f256724
commit
06b2c5bec7
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ export default class Renderer {
|
||||||
getAttribLocation(program: WebGLProgram, name: string): number {
|
getAttribLocation(program: WebGLProgram, name: string): number {
|
||||||
let ret = this.gl.getAttribLocation(program, name);
|
let ret = this.gl.getAttribLocation(program, name);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
throw new Error('unable to get location of attribute \'' + name + '\'');
|
throw new Error("unable to get location of attribute '" + name + "'");
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ export default class Renderer {
|
||||||
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation {
|
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation {
|
||||||
let ret = this.gl.getUniformLocation(program, name);
|
let ret = this.gl.getUniformLocation(program, name);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
throw new Error('unable to get location of uniform \'' + name + '\'');
|
throw new Error("unable to get location of uniform '" + name + "'");
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue