From 9c39c7994b65b01b254476661336c0f9b0349fc9 Mon Sep 17 00:00:00 2001 From: alphanu1 <37101891+alphanu1@users.noreply.github.com> Date: Tue, 22 Dec 2020 17:42:22 +0000 Subject: [PATCH] Fix undeclared compile error Retroarch_data_h:2668:26: error: 'command_set_shader' undeclared here (not in function); do you mean 'command_get_ststus'? { "SET_SHADER", command_set_shader, "" } --- retroarch_data.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/retroarch_data.h b/retroarch_data.h index f8d6850fcf..d6bd295788 100644 --- a/retroarch_data.h +++ b/retroarch_data.h @@ -2665,7 +2665,9 @@ static bool command_write_ram(const char *arg); #endif static const struct cmd_action_map action_map[] = { +#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL) { "SET_SHADER", command_set_shader, "" }, +#endif { "VERSION", command_version, "No argument"}, { "GET_STATUS", command_get_status, "No argument" }, { "GET_CONFIG_PARAM", command_get_config_param, "" },