Add HAVE_MENU ifdefs
This commit is contained in:
parent
8c084c70b7
commit
db9f4697f6
|
@ -956,8 +956,10 @@ static bool d3d9_initialize(d3d9_video_t *d3d, const video_info_t *info)
|
||||||
* and will prevent a clean reset here
|
* and will prevent a clean reset here
|
||||||
* another approach would be to keep track of all created D3D
|
* another approach would be to keep track of all created D3D
|
||||||
* font objects and free/realloc them around the d3d_reset call */
|
* font objects and free/realloc them around the d3d_reset call */
|
||||||
|
#ifdef HAVE_MENU
|
||||||
menu_driver_ctl(RARCH_MENU_CTL_DEINIT, NULL);
|
menu_driver_ctl(RARCH_MENU_CTL_DEINIT, NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!d3d9_reset(d3d->dev, &d3dpp))
|
if (!d3d9_reset(d3d->dev, &d3dpp))
|
||||||
{
|
{
|
||||||
d3d9_deinitialize(d3d);
|
d3d9_deinitialize(d3d);
|
||||||
|
@ -968,7 +970,10 @@ static bool d3d9_initialize(d3d9_video_t *d3d, const video_info_t *info)
|
||||||
if (ret)
|
if (ret)
|
||||||
RARCH_LOG("[D3D9]: Recovered from dead state.\n");
|
RARCH_LOG("[D3D9]: Recovered from dead state.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_MENU
|
||||||
menu_driver_init(info->is_threaded);
|
menu_driver_init(info->is_threaded);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
|
Loading…
Reference in New Issue