# glGetShaderInfoLog

Definition: | include pGUI.e include opengl.e string res = glGetShaderInfoLog(integer shader)
Description: | return the information log for a shader object shader: Specifies the shader object whose information log is to be queried.
pwa/p2js: | Supported.
Notes: | The opengl.e wrapper and pGUI.js take care of the required buffer automatically, you do not need to and in fact cannot provide your own temporary buffer (unlike the C api). glGetShaderInfoLog returns the information log for the specified shader object. The information log for a shader object is modified when the shader is compiled. The string that is returned will be null terminated. The information log for a shader object is a string that may contain diagnostic messages, warning messages, and other information about the last compile operation. When a shader object is created, its information log will be a string of length 0. The information log for a shader object is the OpenGL implementer’s primary mechanism for conveying information about the compilation process. Therefore, the information log can be helpful to application developers during the development process, even when compilation is successful. Application developers should not expect different OpenGL implementations to produce identical information logs.
Errors: | GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL. GL_INVALID_OPERATION is generated if shader is not a shader object. GL_INVALID_VALUE is generated if maxLength is less than 0.
Associated Gets: | glIsShader
See Also: | glCompileShader, X, glLinkProgram, Z DEV See Also //glCompileShader, glGetProgramInfoLog, //glLinkProgram, glValidateProgram