Skip to content

Commit

Permalink
WebGLProgram: Improve formatting of error log. (#27565)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Jan 15, 2024
1 parent 329f9f0 commit 2ba547d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderers/webgl/WebGLProgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,8 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) {
console.error(
'THREE.WebGLProgram: Shader Error ' + gl.getError() + ' - ' +
'VALIDATE_STATUS ' + gl.getProgramParameter( program, gl.VALIDATE_STATUS ) + '\n\n' +
'Shader Info: ' + self.name + '(' + self.type + ')' + '\n' +
'Material Name: ' + self.name + '\n' +
'Material Type: ' + self.type + '\n\n' +
'Program Info Log: ' + programLog + '\n' +
vertexErrors + '\n' +
fragmentErrors
Expand Down

0 comments on commit 2ba547d

Please sign in to comment.