mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-27 05:05:51 +00:00
Use return value of image_texture_load
This commit is contained in:
parent
cbc06e152d
commit
c560f1c71b
@ -1370,25 +1370,29 @@ static void xmb_context_reset_horizontal_list(
|
|||||||
"-content.png",
|
"-content.png",
|
||||||
sizeof(content_texturepath));
|
sizeof(content_texturepath));
|
||||||
|
|
||||||
image_texture_load(&ti, texturepath);
|
if (image_texture_load(&ti, texturepath))
|
||||||
|
{
|
||||||
|
if(ti.pixels)
|
||||||
|
{
|
||||||
|
video_driver_texture_unload(&node->icon);
|
||||||
|
video_driver_texture_load(&ti,
|
||||||
|
TEXTURE_FILTER_MIPMAP_LINEAR, &node->icon);
|
||||||
|
}
|
||||||
|
|
||||||
if(ti.pixels) {
|
image_texture_free(&ti);
|
||||||
video_driver_texture_unload(&node->icon);
|
|
||||||
video_driver_texture_load(&ti,
|
|
||||||
TEXTURE_FILTER_MIPMAP_LINEAR, &node->icon);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
image_texture_free(&ti);
|
if (image_texture_load(&ti, content_texturepath))
|
||||||
|
{
|
||||||
|
if(ti.pixels)
|
||||||
|
{
|
||||||
|
video_driver_texture_unload(&node->content_icon);
|
||||||
|
video_driver_texture_load(&ti,
|
||||||
|
TEXTURE_FILTER_MIPMAP_LINEAR, &node->content_icon);
|
||||||
|
}
|
||||||
|
|
||||||
image_texture_load(&ti, content_texturepath);
|
image_texture_free(&ti);
|
||||||
|
|
||||||
if(ti.pixels) {
|
|
||||||
video_driver_texture_unload(&node->content_icon);
|
|
||||||
video_driver_texture_load(&ti,
|
|
||||||
TEXTURE_FILTER_MIPMAP_LINEAR, &node->content_icon);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
image_texture_free(&ti);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
xmb_toggle_horizontal_list(xmb);
|
xmb_toggle_horizontal_list(xmb);
|
||||||
|
Loading…
Reference in New Issue
Block a user