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;