Set g_texture_cache to NULL upon shutdown. Fixes a crash introduced in previous commits.

This commit is contained in:
NeoBrainX 2012-06-21 14:21:16 +02:00
parent cc0523e55b
commit 1c8cdebc22
3 changed files with 3 additions and 0 deletions

View File

@ -230,6 +230,7 @@ void VideoBackend::Shutdown()
delete g_texture_cache;
delete g_renderer;
g_renderer = NULL;
g_texture_cache = NULL;
}
}

View File

@ -212,6 +212,7 @@ void VideoBackend::Shutdown()
delete g_texture_cache;
delete g_renderer;
g_renderer = NULL;
g_texture_cache = NULL;
}
D3D::Shutdown();
}

View File

@ -235,6 +235,7 @@ void VideoBackend::Shutdown()
OpcodeDecoder_Shutdown();
delete g_renderer;
g_renderer = NULL;
g_texture_cache = NULL;
}
OpenGL_Shutdown();
}