fix: exit with error on shader compilation failure

This commit is contained in:
Cat Flynn 2023-08-03 10:26:27 +02:00 committed by ktyl
parent 20658ba15a
commit 85e0bf3d6c
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ GLuint compileShaderProgram()
glGetProgramInfoLog(shaderProgram, 512, NULL, infoLog); glGetProgramInfoLog(shaderProgram, 512, NULL, infoLog);
std::cerr << "shader linking failed" << std::endl std::cerr << "shader linking failed" << std::endl
<< infoLog << std::endl; << infoLog << std::endl;
exit(-1);
} }
// We no longer need the individual shaders // We no longer need the individual shaders