From 85e0bf3d6c75b4e59111a2bca2d13b273972a211 Mon Sep 17 00:00:00 2001 From: Cat Flynn Date: Thu, 3 Aug 2023 10:26:27 +0200 Subject: [PATCH] fix: exit with error on shader compilation failure --- src/gfx.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gfx.cpp b/src/gfx.cpp index d1996ca..700db36 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -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