diff --git a/src/common/shaderloader.hpp b/src/common/shaderloader.hpp index 71e63ff..470bfcf 100644 --- a/src/common/shaderloader.hpp +++ b/src/common/shaderloader.hpp @@ -200,6 +200,9 @@ int loadShadersFromFile(const char* file_path, struct ShaderRegistry *registry) else if(strcmp("geometry", type) == 0) { shader_type = geometry; } + else { + shader_type = 0; + } if(shader_type == 0) { // Invalid line, unknown type.