mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
gfx_widgets_ai_service_overlay_load - cleanup
This commit is contained in:
parent
4b3f8b4a09
commit
497f2d92b5
@ -2010,15 +2010,14 @@ bool gfx_widgets_ai_service_overlay_load(
|
||||
{
|
||||
if (p_dispwidget->ai_service_overlay_state == 0)
|
||||
{
|
||||
bool res = gfx_widgets_reset_textures_list_buffer(
|
||||
if (!gfx_widgets_reset_textures_list_buffer(
|
||||
&p_dispwidget->ai_service_overlay_texture,
|
||||
TEXTURE_FILTER_MIPMAP_LINEAR,
|
||||
(void *) buffer, buffer_len, image_type,
|
||||
&p_dispwidget->ai_service_overlay_width,
|
||||
&p_dispwidget->ai_service_overlay_height);
|
||||
if (res)
|
||||
p_dispwidget->ai_service_overlay_state = 1;
|
||||
return res;
|
||||
&p_dispwidget->ai_service_overlay_height))
|
||||
return false;
|
||||
p_dispwidget->ai_service_overlay_state = 1;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user