Set supports_rgba for overlay images

This commit is contained in:
twinaphex 2017-01-08 21:45:43 +01:00
parent 9b6b055047
commit ccca4c303d

View File

@ -82,6 +82,8 @@ static void task_overlay_load_desc_image(
fill_pathname_resolve_relative(path, loader->overlay_path,
image_path, sizeof(path));
image_tex.supports_rgba = video_driver_supports_rgba();
if (image_texture_load(&image_tex, path))
{
input_overlay->load_images[input_overlay->load_images_size++] = image_tex;
@ -584,6 +586,8 @@ static void task_overlay_deferred_load(retro_task_t *task)
loader->overlay_path,
overlay->config.paths.path, sizeof(overlay_resolved_path));
image_tex.supports_rgba = video_driver_supports_rgba();
if (!image_texture_load(&image_tex, overlay_resolved_path))
{
RARCH_ERR("[Overlay]: Failed to load image: %s.\n",