Recommended Posts

When using D3DXCreateTextureFromFileInMemory(), Does DirectX make a copy of the data passed to it? The reason I ask is because I retrieve a file from an archive, pass the loaded data into D3DXCreateTextureFromFileInMemory(), then delete the loaded data (assuming DirectX makes its own copy). After I delete the data my application runs very slow. However, if I don't delete the data then the application runs fine.