From 8d6c634d1edc3dbc89de5be343d258e8a7a99a92 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 28 Mar 2006 12:24:00 +0000 Subject: [PATCH] clear these; they're global (though we won't create two RageDisplay_D3D objects in one run) --- stepmania/src/RageDisplay_D3D.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 6c574cd75b..672d8dfaaa 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -282,10 +282,16 @@ RageDisplay_D3D::~RageDisplay_D3D() LOG->Trace( "RageDisplay_D3D::~RageDisplay()" ); if( g_pd3dDevice ) + { g_pd3dDevice->Release(); + g_pd3dDevice = NULL; + } if( g_pd3d ) + { g_pd3d->Release(); + g_pd3d = NULL; + } #if !defined(XBOX) if( g_D3D8_Module )