Imagination PowerVR SDK Blog

glGetShaderInfoLog crash


I’ve started trying out GLES 2.0 shaders and noticed a crash with the following call:

        glGetShaderInfoLog(vShader, infoLogLen, NULL, infoLog);

If I change the NULL to “&charsWritten”, then no crash.  The spec (2.0.22) does say about GetShaderInfoLog:  "If length is NULL, then no length is returned."

In this case, I was just being lazy and is no big deal :)   Just thought I’d mention it - and btw, thanks very much for the Linux SDK!  I’m running it in a 32bit chroot env under my main 64bit Gentoo system - works very well.

  DS Game Developer


Thank you for reporting this, Adam. We’ll have it fixed in our next SDK release.