Disable no-missing-requires rule in generated shader code

This commit is contained in:
Tim Schaub
2017-05-02 10:54:17 -06:00
parent 3f973e6fa3
commit 479d98212b
13 changed files with 19 additions and 12 deletions

View File

@@ -196,8 +196,8 @@ if (ol.ENABLE_WEBGL) {
var program = context.getProgram(this.fragmentShader_, this.vertexShader_);
context.useProgram(program);
if (!this.locations_) {
this.locations_ =
new ol.renderer.webgl.tilelayershader.Locations(gl, program);
// eslint-disable-next-line openlayers-internal/no-missing-requires
this.locations_ = new ol.renderer.webgl.tilelayershader.Locations(gl, program);
}
context.bindBuffer(ol.webgl.ARRAY_BUFFER, this.renderArrayBuffer_);