If texture override and texture prefetch was enabled, all overridden
textures would be loaded again every time the D3D device was reset, for
example when re-entering fullscreen mode again after alt-tabbing away from
DS. The already loaded textures would not be freed, leading to a
significant memory leak.
This change makes prefetching happen only on the first init, and should
fix #32.
If texture override and texture prefetch was enabled, all overridden textures would be loaded again every time the D3D device was reset, for example when re-entering fullscreen mode again after alt-tabbing away from DS. The already loaded textures would not be freed, leading to a significant memory leak.
This change makes prefetching happen only on the first init, and should fix #32.