Unnecessary THREE.WebGLProgram: gl.getProgramInfoLog() message

A trivial detail. I always get blank THREE.WebGLProgram: gl.getProgramInfoLog() warning messages from 18057 of 89 (and equivalents in earlier versions). These would disappear if you change
18055 } else if ( programLog !== ” ) {
18055 } else if ( programLog.trim() !== ” ) {

The trim() means we don’t get warnings if the InfoLog is a blank space.

It’s great to get rid of unnecessary warnings so I can concentrate on all those that are due to my errors.

Or maybe there’s a reason why we should be warned if the log gives us a blank space, but I can’t think why or what to do about it.

Thanks as always


Three.js version
  • Dev
  • r89
  • [] All of them
  • Chrome
  • [X ] Firefox
  • Internet Explorer
  • [] All of them
  • [x ] Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)


Author: Fantashit

1 thought on “Unnecessary THREE.WebGLProgram: gl.getProgramInfoLog() message

  1. I’ve created a PR to perform at least a simple trim on the info log messages. This is something we can safely do without any performance hits.

Comments are closed.