mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Always call gfx_ctx_free
This commit is contained in:
parent
3b516cacd7
commit
b345d04407
@ -93,6 +93,7 @@ static bool d3d_init_chain(d3d_video_t *d3d,
|
||||
#ifdef HAVE_OVERLAY
|
||||
static void d3d_free_overlays(d3d_video_t *d3d);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
static void d3d_free_overlay(d3d_video_t *d3d, overlay_t *overlay);
|
||||
#endif
|
||||
@ -825,15 +826,14 @@ static void d3d_free(void *data)
|
||||
d3d_free_overlays(d3d);
|
||||
#endif
|
||||
|
||||
#ifdef _XBOX
|
||||
gfx_ctx_free();
|
||||
#else
|
||||
|
||||
#ifndef _XBOX
|
||||
#ifdef HAVE_MENU
|
||||
d3d_free_overlay(d3d, d3d->menu);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
if (d3d->dev)
|
||||
d3d->dev->Release();
|
||||
if (d3d->g_pD3D)
|
||||
|
Loading…
Reference in New Issue
Block a user