With these it helps Both string::c_str() and string::data() return a const char* until C++17. Since C++17, string::data() has an overload that will return a char*. This means this code snippet is invalid. Edit: An easier and as efficient solution is to use &str. The subscript operator will return a char&.
it fixes the issue You're suffering from a bug. I worked around by using the old GL ES 2.0 bindings to get a functioning glGetShaderInfoLog. Like this:
AndroidGL20 gl2 = new AndroidGL20();
Unable to retrieve an error message from glGetShaderInfoLog
By : Micah Beasley
Date : March 29 2020, 07:55 AM
With these it helps I am attempting to build a simple OpenGL 3.2 program which consists of a single fragment shader, but I do not seem to be able to actually compile the shader. I'm fairly sure that my shader syntax is correct, but even if it's not, I am unable to retrieve an error message using glGetShaderInfoLog. , As noted in a previous comment, the glCompileShader call was missing.
What encoding is used by functions such as glGetString and glGetShaderInfoLog