Ticket #8925 (closed defect: fixed)
glGetShaderSource doesn't zero-terminate source string
|Reported by:||kuroneko||Owned by:|
Description (last modified by frank) (diff)
This has been observed for windows and Mac OS hosts.
Once the source length (including terminator) has been established through glGetShaderiv() a buffer is allocated. The call to glGetShaderSource() is now supposed to fill this buffer with the shader source which *is* zero-terminated. The fill length is reported without said terminator (i.e. strlen(src)).
What I observe is that the length is reported correctly, the shader source itself is correct but the zero-terminator is missing.