Several fixes to GIProbes

This commit is contained in:
Juan Linietsky
2019-10-31 19:54:21 -03:00
parent 971ce680f2
commit da0457fa29
17 changed files with 234 additions and 18 deletions

View File

@ -114,6 +114,7 @@ Error png_to_image(const uint8_t *p_source, size_t p_size, Ref<Image> p_image) {
ERR_FAIL_COND_V_MSG(check_error(png_img), ERR_FILE_CORRUPT, png_img.message);
ERR_FAIL_COND_V(!success, ERR_FILE_CORRUPT);
//print_line("png width: "+itos(png_img.width)+" height: "+itos(png_img.height));
p_image->create(png_img.width, png_img.height, 0, dest_format, buffer);
return OK;