Imagination PowerVR SDK Blog

glGetShaderInfoLog crash


#1

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.

  Adam
  DS Game Developer



#2

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