src/texture.c

changeset 91
8433c87c0f51
parent 89
e1f682a8a145
child 92
78ce93fb46e5
--- a/src/texture.c	Mon Apr 21 17:52:01 2025 +0200
+++ b/src/texture.c	Tue Apr 22 19:36:27 2025 +0200
@@ -99,8 +99,7 @@
     SDL_Surface *image = IMG_Load(filepath.ptr);
     cx_strfree(&filepath);
     if (image == NULL) {
-        asc_error("Failed to load texture.");
-        asc_error(IMG_GetError());
+        asc_error("Failed to load texture: %s", IMG_GetError());
         return;
     }
     asc_texture_from_surface(tex, image);

mercurial