Browse Source

WebGLProgram: show error line indicator (#24131)

* WebGLProgram: show error line indicator

* Lint
Marco Fugaro 3 years ago
parent
commit
a4d7a97260
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/renderers/webgl/WebGLProgram.js

+ 2 - 1
src/renderers/webgl/WebGLProgram.js

@@ -15,7 +15,8 @@ function handleSource( string, errorLine ) {
 
 
 	for ( let i = from; i < to; i ++ ) {
 	for ( let i = from; i < to; i ++ ) {
 
 
-		lines2.push( ( i + 1 ) + ': ' + lines[ i ] );
+		const line = i + 1;
+		lines2.push( `${line === errorLine ? '>' : ' '} ${line}: ${lines[ i ]}` );
 
 
 	}
 	}