Explorar o código

Moved conditional to make it more meaningful

Ludovic Bailly %!s(int64=8) %!d(string=hai) anos
pai
achega
50ae30347f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/renderers/webgl/WebGLState.js

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

@@ -728,9 +728,9 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 
 	function setLineWidth( width ) {
 
-		if ( lineWidthAvailable && width !== currentLineWidth ) {
+		if ( width !== currentLineWidth ) {
 
-			gl.lineWidth( width );
+			if ( lineWidthAvailable ) gl.lineWidth( width );
 
 			currentLineWidth = width;