Răsfoiți Sursa

Moved conditional to make it more meaningful

Ludovic Bailly 8 ani în urmă
părinte
comite
50ae30347f
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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 ) {
 	function setLineWidth( width ) {
 
 
-		if ( lineWidthAvailable && width !== currentLineWidth ) {
+		if ( width !== currentLineWidth ) {
 
 
-			gl.lineWidth( width );
+			if ( lineWidthAvailable ) gl.lineWidth( width );
 
 
 			currentLineWidth = width;
 			currentLineWidth = width;