• Advertisement
Sign in to follow this  

D3DXCreateTextureFromFileInMemory memory ownership

This topic is 2374 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all,

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.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement