Skip to content

Commit

Permalink
WebGLProgram: Improve formatting of error log. (mrdoob#27565)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored and AdaRoseCannon committed Jan 15, 2024
1 parent 0883d91 commit 33bf869
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 33bf869

Please sign in to comment.