diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/renderer/runtime/view/renderer/shaders.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer/runtime/view/renderer/shaders.ts b/src/renderer/runtime/view/renderer/shaders.ts index c00568e..c9810bd 100644 --- a/src/renderer/runtime/view/renderer/shaders.ts +++ b/src/renderer/runtime/view/renderer/shaders.ts @@ -61,14 +61,14 @@ export class Shaders { private getAttribLocation(program: WebGLProgram, name: string): number { const ret = this.gl.getAttribLocation(program, name); - if (ret < 0) throw new Error("unable to get location of attribute '" + name + "'"); + if (ret < 0) throw new Error(`unable to get location of attribute '${name}'`); return ret; } private getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation { const ret = this.gl.getUniformLocation(program, name); - if (!ret) throw new Error("unable to get location of uniform '" + name + "'"); + if (!ret) throw new Error(`unable to get location of uniform '${name}'`); return ret; } |