From b345d04407882e137fb047a13986d32d6998b180 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 7 Jan 2016 00:03:05 +0100 Subject: [PATCH] Always call gfx_ctx_free --- gfx/d3d/d3d.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 314690cd5b..cc300db18e 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -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)