mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
fixed some initialization and cleanup issues with new D3D code (nw)
This commit is contained in:
parent
17639324ca
commit
80dbfdec59
@ -490,6 +490,8 @@ texture_manager::texture_manager(renderer *d3d)
|
||||
m_renderer = d3d;
|
||||
|
||||
m_texlist = NULL;
|
||||
m_vector_texture = NULL;
|
||||
m_default_texture = NULL;
|
||||
|
||||
// check for dynamic texture support
|
||||
DWORD tempcaps;
|
||||
@ -582,9 +584,13 @@ void texture_manager::create_resources()
|
||||
|
||||
void texture_manager::delete_resources()
|
||||
{
|
||||
global_free(m_default_texture);
|
||||
// is part of m_texlist and will be free'd there
|
||||
//global_free(m_default_texture);
|
||||
m_default_texture = NULL;
|
||||
|
||||
//global_free(m_vector_texture);
|
||||
m_vector_texture = NULL;
|
||||
|
||||
// free all textures
|
||||
while (m_texlist != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user