trunk/src/osd/windows/drawd3d.c
| r22947 | r22948 | |
| 490 | 490 | m_renderer = d3d; |
| 491 | 491 | |
| 492 | 492 | m_texlist = NULL; |
| 493 | m_vector_texture = NULL; |
| 494 | m_default_texture = NULL; |
| 493 | 495 | |
| 494 | 496 | // check for dynamic texture support |
| 495 | 497 | DWORD tempcaps; |
| r22947 | r22948 | |
| 582 | 584 | |
| 583 | 585 | void texture_manager::delete_resources() |
| 584 | 586 | { |
| 585 | | global_free(m_default_texture); |
| 587 | // is part of m_texlist and will be free'd there |
| 588 | //global_free(m_default_texture); |
| 586 | 589 | m_default_texture = NULL; |
| 587 | 590 | |
| 591 | //global_free(m_vector_texture); |
| 592 | m_vector_texture = NULL; |
| 593 | |
| 588 | 594 | // free all textures |
| 589 | 595 | while (m_texlist != NULL) |
| 590 | 596 | { |