Always call gfx_ctx_free

This commit is contained in:
twinaphex 2016-01-07 00:03:05 +01:00
parent 3b516cacd7
commit b345d04407

View File

@ -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)