mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-03 10:13:11 +00:00
Exit video_texture_image_load_internal if we build
without HAVE_RJPEG/HAVE_RPNG depending on content type
This commit is contained in:
parent
1166be62ae
commit
558dfd64f2
@ -159,7 +159,27 @@ static bool video_texture_image_load_internal(
|
||||
{
|
||||
int ret;
|
||||
bool success = false;
|
||||
void *img = image_transfer_new(type);
|
||||
void *img = NULL;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case IMAGE_TYPE_JPEG:
|
||||
#ifdef HAVE_RJPEG
|
||||
break;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
case IMAGE_TYPE_PNG:
|
||||
#ifdef HAVE_RPNG
|
||||
break;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
img = image_transfer_new(type);
|
||||
|
||||
if (!img)
|
||||
goto end;
|
||||
|
Loading…
x
Reference in New Issue
Block a user