view/Renderer: code style

This commit is contained in:
Matthias Schiffer 2018-10-24 00:27:53 +02:00
parent ad0f256724
commit 06b2c5bec7
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -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;
} }