From db9f4697f65524d1e99b30a941eb71364ba62a6d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 14 Aug 2018 11:40:42 +0200 Subject: [PATCH] Add HAVE_MENU ifdefs --- gfx/drivers/d3d9.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/drivers/d3d9.c b/gfx/drivers/d3d9.c index 43298d3615..290bfe3af0 100644 --- a/gfx/drivers/d3d9.c +++ b/gfx/drivers/d3d9.c @@ -956,8 +956,10 @@ static bool d3d9_initialize(d3d9_video_t *d3d, const video_info_t *info) * and will prevent a clean reset here * another approach would be to keep track of all created D3D * font objects and free/realloc them around the d3d_reset call */ - +#ifdef HAVE_MENU menu_driver_ctl(RARCH_MENU_CTL_DEINIT, NULL); +#endif + if (!d3d9_reset(d3d->dev, &d3dpp)) { d3d9_deinitialize(d3d); @@ -968,7 +970,10 @@ static bool d3d9_initialize(d3d9_video_t *d3d, const video_info_t *info) if (ret) RARCH_LOG("[D3D9]: Recovered from dead state.\n"); } + +#ifdef HAVE_MENU menu_driver_init(info->is_threaded); +#endif } if (!ret)