From f11f892076571892cce4d943b0704f4f3a4f7a0c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 21 Sep 2021 17:31:51 +0200 Subject: [PATCH] Put retroarch_apply_shader_preset behind ifdef --- retroarch.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/retroarch.c b/retroarch.c index 527bbca55c..4fbaa48bad 100644 --- a/retroarch.c +++ b/retroarch.c @@ -5354,13 +5354,13 @@ bool command_write_memory(command_t *cmd, const char *arg) } #endif +#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL) static bool retroarch_apply_shader( struct rarch_state *p_rarch, settings_t *settings, enum rarch_shader_type type, const char *preset_path, bool message) { -#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL) char msg[256]; const char *core_name = runloop_state.system.info.library_name; const char *preset_file = NULL; @@ -5445,11 +5445,9 @@ static bool retroarch_apply_shader( runloop_msg_queue_push( msg, 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_ERROR); -#endif return false; } -#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL) bool command_set_shader(command_t *cmd, const char *arg) { enum rarch_shader_type type = video_shader_parse_type(arg);