summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-10-29 16:12:09 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-10-29 17:58:34 +0900
commite5dbc2111931b367aac4329efa89914a3ec38619 (patch)
tree6797b3e04fc019d5b3ae7bc65c8ad6b96254afcb /src/lib/emile
parente555f072353eb2a47af9032cbcb19287d32b414e (diff)
Emile: Allow load of ETC images if region = whole image
@fix
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/emile_image.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c
index ef343ccf99..58a37c5c45 100644
--- a/src/lib/emile/emile_image.c
+++ b/src/lib/emile/emile_image.c
@@ -335,7 +335,9 @@ _emile_tgv_head(Emile_Image *image,
335 0, 0, 335 0, 0,
336 image->size.width, image->size.height); 336 image->size.width, image->size.height);
337 if (image->load_opts && 337 if (image->load_opts &&
338 (image->opts.region.w > 0 && image->opts.region.h > 0)) 338 ((image->opts.region.w > 0) && (image->opts.region.h > 0) &&
339 (image->opts.region.w != (int) image->size.width) &&
340 (image->opts.region.h != (int) image->size.height)))
339 { 341 {
340 /* ETC colorspace doesn't work with region for now */ 342 /* ETC colorspace doesn't work with region for now */
341 prop->cspaces = NULL; 343 prop->cspaces = NULL;