The glGetShaderiv function returns lengths (GL_INFO_LOG_LENGTH and GL_SHADER_SOURCE_LENGTH) without including the null terminating character (the spec says it should include it)
The functions that implement those queries are in src/mesa/shader/shader_api.c. Maybe you could try fixing things and submitting a patch?
Created attachment 10714 [details] [review] glgetshader/glgetprogram patch I wasn't sure if it isn't deliberate :) Anyway, here's patch
Thanks. That looks good, but there's also a length returned by the glGetInfoLogARB() function. So you might check/test the _mesa_get_shader/program_info_log() functions to see if they're correct or off by one.
(In reply to comment #3) > Thanks. That looks good, but there's also a length returned by the > glGetInfoLogARB() function. So you might check/test the > _mesa_get_shader/program_info_log() functions to see if they're correct or off > by one. > They're returning number of characters written into buffer, excluding the terminator, so yes, they are correct.
Fixed in git. Thanks!
Mass version move, cvs -> git
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.