Several fixes to GIProbes
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user