From 20f3b8d40477f96315d07bc3b6012ca513c8b8f8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 24 Dec 2019 03:15:51 +0100 Subject: [PATCH] Buildfix for non-shader targets --- menu/cbs/menu_cbs_ok.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 513431651c..fb0a624dd7 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -5559,6 +5559,7 @@ static int action_ok_push_dropdown_item_video_shader_param_generic(const char *p const char *label, unsigned type, size_t idx, size_t entry_idx, size_t setting_offset) { +#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL) video_shader_ctx_t shader_info; unsigned offset = setting_offset; float val = atof(path); @@ -5580,6 +5581,9 @@ static int action_ok_push_dropdown_item_video_shader_param_generic(const char *p menu_shader_set_modified(true); return action_cancel_pop_default(NULL, NULL, 0, 0); +#else + return 0; +#endif } static int action_ok_push_dropdown_item_video_shader_param(const char *path,