fix: exit with error on shader compilation failure
This commit is contained in:
parent
20658ba15a
commit
85e0bf3d6c
|
@ -46,6 +46,7 @@ GLuint compileShaderProgram()
|
|||
glGetProgramInfoLog(shaderProgram, 512, NULL, infoLog);
|
||||
std::cerr << "shader linking failed" << std::endl
|
||||
<< infoLog << std::endl;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
// We no longer need the individual shaders
|
||||
|
|
Loading…
Reference in New Issue