diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-09-23 21:10:08 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-09-23 21:10:08 +0200 |
commit | a5524a7e3e8248a5a4baa8af62a1a758f1d07e7f (patch) | |
tree | 3dbb25931e1b9e3b2ba7f73d73eaf4933972ae3e /src/graphics/image.c | |
parent | 14e28f6107d9e9bae81eeee8d0a22abdc256a295 (diff) |
Make window rgba and set background transparent to allow window clear to work with transparency
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; } |