forked from enlightenment/efl
parent
d22155487b
commit
eaf9822094
|
@ -519,14 +519,20 @@ _emile_tgv_data(Emile_Image *image,
|
|||
if (image->compress)
|
||||
{
|
||||
if (!emile_expand(data_start, buffer, EMILE_LZ4HC))
|
||||
{
|
||||
eina_binbuf_free(data_start);
|
||||
goto on_error;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
buffer = data_start;
|
||||
if (block_count * etc_block_size != block_length)
|
||||
{
|
||||
eina_binbuf_free(data_start);
|
||||
goto on_error;
|
||||
}
|
||||
}
|
||||
it = eina_binbuf_string_get(buffer);
|
||||
|
||||
for (i = 0; i < image->block.height; i += 4)
|
||||
|
@ -635,6 +641,8 @@ _emile_tgv_data(Emile_Image *image,
|
|||
abort();
|
||||
}
|
||||
} /* bx,by inside blocks */
|
||||
|
||||
eina_binbuf_free(data_start);
|
||||
} /* x,y macroblocks */
|
||||
|
||||
// TODO: Add support for more unpremultiplied modes (ETC2)
|
||||
|
|
Loading…
Reference in New Issue