Put retroarch_apply_shader_preset behind ifdef
This commit is contained in:
parent
6c5e17e5ae
commit
f11f892076
|
@ -5354,13 +5354,13 @@ bool command_write_memory(command_t *cmd, const char *arg)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
||||||
static bool retroarch_apply_shader(
|
static bool retroarch_apply_shader(
|
||||||
struct rarch_state *p_rarch,
|
struct rarch_state *p_rarch,
|
||||||
settings_t *settings,
|
settings_t *settings,
|
||||||
enum rarch_shader_type type,
|
enum rarch_shader_type type,
|
||||||
const char *preset_path, bool message)
|
const char *preset_path, bool message)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
|
||||||
char msg[256];
|
char msg[256];
|
||||||
const char *core_name = runloop_state.system.info.library_name;
|
const char *core_name = runloop_state.system.info.library_name;
|
||||||
const char *preset_file = NULL;
|
const char *preset_file = NULL;
|
||||||
|
@ -5445,11 +5445,9 @@ static bool retroarch_apply_shader(
|
||||||
runloop_msg_queue_push(
|
runloop_msg_queue_push(
|
||||||
msg, 1, 180, true, NULL,
|
msg, 1, 180, true, NULL,
|
||||||
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_ERROR);
|
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_ERROR);
|
||||||
#endif
|
|
||||||
return false;
|
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)
|
bool command_set_shader(command_t *cmd, const char *arg)
|
||||||
{
|
{
|
||||||
enum rarch_shader_type type = video_shader_parse_type(arg);
|
enum rarch_shader_type type = video_shader_parse_type(arg);
|
||||||
|
|
Loading…
Reference in New Issue