Fix unchecked return value warning

This commit is contained in:
twinaphex 2016-09-23 16:05:14 +02:00
parent 4e3c9987f5
commit 12fa0bd019
1 changed files with 3 additions and 1 deletions

View File

@ -846,7 +846,9 @@ void menu_display_reset_textures_list(const char *texture_path, const char *icon
if (string_is_empty(path) || !path_file_exists(path))
return;
image_texture_load(&ti, path);
if (!image_texture_load(&ti, path))
return;
video_driver_texture_load(&ti,
TEXTURE_FILTER_MIPMAP_LINEAR, item);
image_texture_free(&ti);