Browse Source

disable/enable eslint no-undef

Daniel Toplak 5 years ago
parent
commit
d79dca8ded
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/renderers/webgl/WebGLCapabilities.js

+ 2 - 0
src/renderers/webgl/WebGLCapabilities.js

@@ -56,8 +56,10 @@ function WebGLCapabilities( gl, extensions, parameters ) {
 
 	}
 
+	/* eslint-disable no-undef */
 	var isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext ) ||
 				   ( typeof WebGL2ComputeRenderingContext !== 'undefined' && gl instanceof WebGL2ComputeRenderingContext );
+	/* eslint-enable no-undef */
 
 	var precision = parameters.precision !== undefined ? parameters.precision : 'highp';
 	var maxPrecision = getMaxPrecision( precision );