From 30353792a532d471eef46fc5c36784866986987f Mon Sep 17 00:00:00 2001 From: radius Date: Wed, 31 Jan 2018 09:45:26 -0500 Subject: [PATCH] update gx2_gfx to use retroarch_get_shader_preset() --- gfx/drivers/gx2_gfx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/drivers/gx2_gfx.c b/gfx/drivers/gx2_gfx.c index 79e3320104..61e3c2408d 100644 --- a/gfx/drivers/gx2_gfx.c +++ b/gfx/drivers/gx2_gfx.c @@ -23,6 +23,7 @@ #include "../../driver.h" #include "../../configuration.h" #include "../../verbosity.h" +#include "../../retroarch.h" #ifdef HAVE_CONFIG_H #include "../../config.h" @@ -446,7 +447,7 @@ static void *wiiu_gfx_init(const video_info_t *video, if(settings->bools.video_shader_enable) { - const char* ext = path_get_extension(settings->paths.path_shader); + const char* ext = retroarch_get_shader_preset(); if(ext && !strncmp(ext, "slang", 5)) wiiu_gfx_set_shader(wiiu, RARCH_SHADER_SLANG, settings->paths.path_shader);