summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/media.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/media.c b/src/media.c
index 636cd91f..26f0af4b 100644
--- a/src/media.c
+++ b/src/media.c
@@ -144,6 +144,9 @@ void makeTexture_GmImage(iGmImage *d) {
144 else { 144 else {
145 imgData = stbi_load_from_memory( 145 imgData = stbi_load_from_memory(
146 constData_Block(data), size_Block(data), &d->size.x, &d->size.y, NULL, 4); 146 constData_Block(data), size_Block(data), &d->size.x, &d->size.y, NULL, 4);
147 if (!imgData) {
148 fprintf(stderr, "[media] image load failed: %s\n", stbi_failure_reason());
149 }
147 } 150 }
148 if (!imgData) { 151 if (!imgData) {
149 d->size = zero_I2(); 152 d->size = zero_I2();