Browse Source

Fix lint errors

Takahiro 5 years ago
parent
commit
a4a208f5d1

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -268,7 +268,7 @@ function WebGLRenderer( parameters ) {
 
 		utils = new WebGLUtils( _gl, extensions, capabilities );
 
-		state = new WebGLState( _gl, extensions, capabilities, utils );
+		state = new WebGLState( _gl, extensions, capabilities );
 		state.scissor( _currentScissor.copy( _scissor ).multiplyScalar( _pixelRatio ).floor() );
 		state.viewport( _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ).floor() );
 

+ 1 - 1
src/renderers/webgl/WebGLBindingStates.js

@@ -392,7 +392,7 @@ function WebGLBindingStates( gl, extensions, attributes, capabilities ) {
 					enableAttributeAndDivisor( programAttribute + 2, 1 );
 					enableAttributeAndDivisor( programAttribute + 3, 1 );
 
-					gl.bindBuffer( _gl.ARRAY_BUFFER, buffer );
+					gl.bindBuffer( gl.ARRAY_BUFFER, buffer );
 
 					gl.vertexAttribPointer( programAttribute + 0, 4, type, false, 64, 0 );
 					gl.vertexAttribPointer( programAttribute + 1, 4, type, false, 64, 16 );

+ 1 - 1
src/renderers/webgl/WebGLState.js

@@ -5,7 +5,7 @@
 import { NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessEqualDepth, LessDepth, AlwaysDepth, NeverDepth, CullFaceFront, CullFaceBack, CullFaceNone, DoubleSide, BackSide, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, NoBlending, NormalBlending, AddEquation, SubtractEquation, ReverseSubtractEquation, MinEquation, MaxEquation, ZeroFactor, OneFactor, SrcColorFactor, SrcAlphaFactor, SrcAlphaSaturateFactor, DstColorFactor, DstAlphaFactor, OneMinusSrcColorFactor, OneMinusSrcAlphaFactor, OneMinusDstColorFactor, OneMinusDstAlphaFactor } from '../../constants.js';
 import { Vector4 } from '../../math/Vector4.js';
 
-function WebGLState( gl, extensions, capabilities, utils ) {
+function WebGLState( gl, extensions, capabilities ) {
 
 	var isWebGL2 = capabilities.isWebGL2;