From 62b1c5a7af7bec06d1ea220d96ab8021e8d19cef Mon Sep 17 00:00:00 2001 From: Sebastien Ronsse Date: Mon, 27 Jun 2016 17:17:11 +1000 Subject: [PATCH] image transfer: Add TGA support to image_transfer_new function --- libretro-common/formats/image_transfer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libretro-common/formats/image_transfer.c b/libretro-common/formats/image_transfer.c index 97d832c8ef..afd3a99fd2 100644 --- a/libretro-common/formats/image_transfer.c +++ b/libretro-common/formats/image_transfer.c @@ -83,6 +83,12 @@ void *image_transfer_new(enum image_type_enum type) return rjpeg_alloc(); #else break; +#endif + case IMAGE_TYPE_TGA: +#ifdef HAVE_RTGA + return rtga_alloc(); +#else + break; #endif case IMAGE_TYPE_BMP: #ifdef HAVE_RBMP