]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/client/texture.c
Trees break if they have no connection to ground
[dragonblocks_alpha.git] / src / client / texture.c
index 525b2aaba41dcc70d5740c5236afa60ea88d1bdf..54063fe3995370ee02cb92da96c29cff9a9ed199 100644 (file)
@@ -64,7 +64,7 @@ Texture *texture_load(char *path, bool mipmap)
                &texture->width, &texture->height, &texture->channels, 0);
        if (!data) {
                fprintf(stderr, "[error] failed to load texture %s\n", path);
-               exit(EXIT_FAILURE);
+               abort();
        }
 
        texture_upload(texture, data, GL_RGBA, mipmap);
@@ -123,7 +123,7 @@ Texture *texture_load_cubemap(char *path, bool bilinear_filter)
                if (!(faces[i].data = stbi_load(filename,
                                &faces[i].width, &faces[i].height, &faces[i].channels, 0))) {
                        fprintf(stderr, "[error] failed to load texture %s\n", filename);
-                       exit(EXIT_FAILURE);
+                       abort();
                }
 
                size = least_common_multiple(size, faces[i].width);