From e93d90bc452a8e4c00d89bc1cb09bfd61f0417a8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 22 Dec 2019 08:12:42 +0100 Subject: [PATCH] Fix build on platforms that don't have shader support --- 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 bc742bda26..e757dba9de 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -5476,6 +5476,7 @@ int action_cb_push_dropdown_item_resolution(const char *path, static int action_ok_push_dropdown_item_video_shader_num_pass(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx) { +#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL) bool refresh = false; struct video_shader *shader = menu_shader_get(); unsigned pass_count = shader ? shader->passes : 0; @@ -5490,6 +5491,9 @@ static int action_ok_push_dropdown_item_video_shader_num_pass(const char *path, 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_resolution(const char *path,