浏览代码

Moved conditional to make it more meaningful

Ludovic Bailly 8 年之前
父节点
当前提交
50ae30347f
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;