From 5d6bdbc2cdcd2a28cfa366d6d23de794e3c94e7f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 30 Dec 2016 05:36:06 +0100 Subject: [PATCH] (task_image.c) Cleanup --- tasks/task_image.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/task_image.c b/tasks/task_image.c index f0c60543cd..710340465d 100644 --- a/tasks/task_image.c +++ b/tasks/task_image.c @@ -329,7 +329,6 @@ bool task_push_image_load(const char *fullpath, retro_task_callback_t cb, void * { nbio_handle_t *nbio = NULL; struct nbio_image_handle *image = NULL; - bool supports_rgba = video_driver_supports_rgba(); retro_task_t *t = (retro_task_t*)calloc(1, sizeof(*t)); if (!t) @@ -342,7 +341,7 @@ bool task_push_image_load(const char *fullpath, retro_task_callback_t cb, void * strlcpy(nbio->path, fullpath, sizeof(nbio->path)); - if (supports_rgba) + if (video_driver_supports_rgba()) BIT32_SET(nbio->status_flags, NBIO_FLAG_IMAGE_SUPPORTS_RGBA); image = (struct nbio_image_handle*)calloc(1, sizeof(*image));