diff --git a/doc/cla/individual/madd-games.md b/doc/cla/individual/madd-games.md new file mode 100644 index 000000000..4e3b1116e --- /dev/null +++ b/doc/cla/individual/madd-games.md @@ -0,0 +1,11 @@ +UK, 2024-03-18 + +I hereby agree to the terms of the Goxel Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Mariusz Pilipczuk projekt.darma@gmail.com https://github.com/madd-games \ No newline at end of file diff --git a/src/formats/png.c b/src/formats/png.c index 7687a1acf..cb79170c0 100644 --- a/src/formats/png.c +++ b/src/formats/png.c @@ -22,6 +22,10 @@ // XXX: this function has to be rewritten. static int png_export(const image_t *img, const char *path, int w, int h) { + if (!goxel.graphics_initialized) { + goxel_create_graphics(); + } + uint8_t *buf; int bpp = img->export_transparent_background ? 4 : 3; if (!path) return -1;