diff --git a/deps/refresh.sh b/deps/refresh.sh new file mode 100755 index 000000000..0c54e0d98 --- /dev/null +++ b/deps/refresh.sh @@ -0,0 +1,3 @@ +rm -fR glfw +git clone https://github.com/glfw/glfw.git +echo $'deps/glfw\n' >> ../.gitignore diff --git a/src/main.c b/src/main.c index a0b622861..6c0795d86 100644 --- a/src/main.c +++ b/src/main.c @@ -2585,16 +2585,21 @@ void reset_model() { int main(int argc, char **argv) { // INITIALIZATION // - curl_global_init(CURL_GLOBAL_DEFAULT); + if (curl_global_init(CURL_GLOBAL_DEFAULT) != 0) { + puts("curl_global_init returns error (non-zero)"); + return -1; + } srand(time(NULL)); rand(); // WINDOW INITIALIZATION // if (!glfwInit()) { + puts("glfwInit returns error"); return -1; } create_window(); if (!g->window) { + puts("window not created"); glfwTerminate(); return -1; } @@ -2608,6 +2613,7 @@ int main(int argc, char **argv) { glfwSetScrollCallback(g->window, on_scroll); if (glewInit() != GLEW_OK) { + puts("glewInit returns error"); return -1; }