Home › Forums › PowerVR Insider Graphics › Bug in glGetShaderiv / GL_SHADER_SOURCE_LENGTH
Tagged: gl_shader_source_length, glgetshaderiv
This topic contains 1 reply, has 2 voices, and was last updated by chris 4 years, 1 month ago.
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.