}
fprintf(stderr, "Failed to compile shader:\n%s\n", src_with_lines.c_str());
- exit(1);
+ abort();
}
return obj;
GLchar error_log[1024] = { 0 };
glGetProgramInfoLog(program, 1024, nullptr, error_log);
fprintf(stderr, "Error linking program: %s\n", error_log);
- exit(1);
+ abort();
}
return program;
}