| 834 | // -------------------------------------------------------------------------------------------------------------------- |
| 835 | |
| 836 | static void shaderCreationFail(const GLuint shaderErr, const GLuint shader2 = 0) |
| 837 | { |
| 838 | if (shaderErr != 0) |
| 839 | { |
| 840 | GLint len = 0; |
| 841 | glGetShaderiv(shaderErr, GL_INFO_LOG_LENGTH, &len); |
| 842 | |
| 843 | std::vector<GLchar> errorLog(len); |
| 844 | glGetShaderInfoLog(shaderErr, len, &len, errorLog.data()); |
| 845 | |
| 846 | d_stderr2("OpenGL3 shader compilation error: %s", errorLog.data()); |
| 847 | |
| 848 | glDeleteShader(shaderErr); |
| 849 | } |
| 850 | |
| 851 | glDeleteShader(shader2); |
| 852 | } |
| 853 | |
| 854 | static void contextCreationFail(const GLuint program, const GLuint shader1, const GLuint shader2) |
| 855 | { |
no test coverage detected