MCPcopy Create free account
hub / github.com/DISTRHO/DPF / shaderCreationFail

Function shaderCreationFail

dgl/src/OpenGL3.cpp:836–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834// --------------------------------------------------------------------------------------------------------------------
835
836static 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
854static void contextCreationFail(const GLuint program, const GLuint shader1, const GLuint shader2)
855{

Callers 1

createContextIfNeededMethod · 0.85

Calls 1

d_stderr2Function · 0.85

Tested by

no test coverage detected