From 217ad4b04d616bae245e5a9a299cf51c827a1307 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 15 Sep 2013 20:14:05 +0200 Subject: [PATCH] Update shader manager on game load. --- frontend/menu/menu_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/menu/menu_common.c b/frontend/menu/menu_common.c index ae305a3e6b..35824389ab 100644 --- a/frontend/menu/menu_common.c +++ b/frontend/menu/menu_common.c @@ -38,6 +38,7 @@ const menu_ctx_driver_t *menu_ctx; #ifdef HAVE_SHADER_MANAGER void shader_manager_init(rgui_handle_t *rgui) { + memset(&rgui->shader, 0, sizeof(rgui->shader)); config_file_t *conf = NULL; char cgp_path[PATH_MAX]; @@ -532,8 +533,10 @@ bool load_menu_game(void) if (rarch_main_init_wrap(&args) == 0) { RARCH_LOG("rarch_main_init_wrap() succeeded.\n"); + // Update menu state which depends on config. menu_update_libretro_info(); menu_init_history(); + shader_manager_init(rgui); return true; } else