Correctly fixes --disable-menu.

Broken in d2893d991ce06dbb7ff510b29e96e7e13c30abcb
This commit is contained in:
orbea 2019-07-21 00:05:15 -07:00
parent cd90760b7b
commit 2aa9c3e72e
2 changed files with 6 additions and 8 deletions

View File

@ -348,7 +348,6 @@ ifeq ($(HAVE_SLANG), 1)
HAVE_SHADERS_COMMON = 1
endif
# Qt WIMP GUI
ifeq ($(HAVE_OPENSSL), 1)
@ -791,6 +790,11 @@ ifeq ($(HAVE_LAKKA_SWITCH), 1)
DEFINES += -DHAVE_LAKKA_SWITCH
endif
# Does not depend on HAVE_MENU
ifeq ($(HAVE_SHADERS_COMMON),1)
OBJ += menu/menu_shader.o
endif
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/menu_driver.o \
menu/menu_content.o \
@ -824,11 +828,7 @@ ifeq ($(HAVE_MENU_COMMON), 1)
menu/drivers/menu_generic.o \
menu/drivers/null.o \
menu/menu_thumbnail_path.o \
menu/drivers_display/menu_display_null.o
ifeq ($(HAVE_SHADERS_COMMON),1)
OBJ += menu/menu_shader.o
endif
menu/drivers_display/menu_display_null.o
ifeq ($(HAVE_MENU_WIDGETS), 1)
OBJ += menu/widgets/menu_widgets.o

View File

@ -629,10 +629,8 @@ static bool content_load(content_ctx_info_t *info)
content_clear_subsystem();
}
#if defined(HAVE_MENU)
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
menu_shader_manager_init();
#endif
#endif
command_event(CMD_EVENT_HISTORY_INIT, NULL);