diff options
Diffstat (limited to 'src/graphics/image.c')
-rw-r--r-- | src/graphics/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics/image.c b/src/graphics/image.c index eeee2ad..bb11334 100644 --- a/src/graphics/image.c +++ b/src/graphics/image.c @@ -46,7 +46,7 @@ int mgl_image_load_from_file(mgl_image *self, const char *filepath) { int format; self->data = stbi_load(filepath, &self->width, &self->height, &format, 0); if(!self->data) { - fprintf(stderr, "Error: failed to load image %s, error: %s\n", filepath, stbi_failure_reason()); + fprintf(stderr, "mgl error: failed to load image %s, error: %s\n", filepath, stbi_failure_reason()); mgl_image_unload(self); return -1; } @@ -65,7 +65,7 @@ int mgl_image_load_from_memory(mgl_image *self, const unsigned char *data, size_ int format; self->data = stbi_load_from_memory(data, size, &self->width, &self->height, &format, 0); if(!self->data) { - fprintf(stderr, "Error: failed to load image from memory, error: %s\n", stbi_failure_reason()); + fprintf(stderr, "mgl error: failed to load image from memory, error: %s\n", stbi_failure_reason()); mgl_image_unload(self); return -1; } |