(Menu) Shader Options shouldn't appear on paltforms that don't support it

This commit is contained in:
twinaphex 2015-03-07 23:31:16 +01:00
parent 9627117166
commit e37a4aa46e
2 changed files with 10 additions and 0 deletions

View File

@ -26,6 +26,12 @@
#include "../../general.h"
#include "menu_input.h"
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
#ifndef HAVE_SHADER_MANAGER
#define HAVE_SHADER_MANAGER
#endif
#endif
#ifndef GFX_MAX_SHADERS
#define GFX_MAX_SHADERS 16
#endif

View File

@ -33,6 +33,8 @@
#include "menu_database.h"
#include "../gfx/video_shader_driver.h"
#ifdef HAVE_LIBRETRODB
static int create_string_list_rdb_entry_string(const char *desc, const char *label,
const char *actual_string, const char *path, file_list_t *list)
@ -1254,8 +1256,10 @@ static int deferred_push_options(void *data, void *userdata,
}
menu_list_push(list, "Video Options", "video_options",
MENU_SETTING_ACTION, 0);
#ifdef HAVE_SHADER_MANAGER
menu_list_push(list, "Shader Options", "shader_options",
MENU_SETTING_ACTION, 0);
#endif
if (driver.menu_ctx && driver.menu_ctx->populate_entries)
driver.menu_ctx->populate_entries(path, label, type);