Bug in glGetShaderiv / GL_SHADER_SOURCE_LENGTH

I want to report the following bug in the GLES2/EGL emulation libraries:



The shader length returned by glGetShaderiv(handle, GL_SHADER_SOURCE_LENGTH, …) is incorrect. The returned value is to small by one.



As the Khronous specification says, it returns the length of the concatenation of the source strings that make up the shader source for the shader, including the null termination character.



It seems that the PVR emulation driver does not count the null termination character.

Thanks for the bug report Airion, this will be fixed in the next release.