From e0b59c40ea4b85f87d5674edcce1c756a3987b60 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 4 Jan 2018 14:52:35 +0100 Subject: [PATCH] Cleanups --- gfx/video_shader_parse.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gfx/video_shader_parse.c b/gfx/video_shader_parse.c index 29462ea91e..8890d510d2 100644 --- a/gfx/video_shader_parse.c +++ b/gfx/video_shader_parse.c @@ -1093,13 +1093,12 @@ enum rarch_shader_type video_shader_parse_type(const char *path, enum rarch_shader_type fallback) { enum rarch_shader_type shader_type = RARCH_SHADER_NONE; - enum gfx_ctx_api api = video_context_driver_get_api(); - - #ifdef HAVE_CG - bool cg_supported = true; - #else - bool cg_supported = false; - #endif + enum gfx_ctx_api api = video_context_driver_get_api(); +#ifdef HAVE_CG + bool cg_supported = true; +#else + bool cg_supported = false; +#endif if (!path) return fallback;