Sign in to follow this  
Helo7777

D3DXCreateTextureFromFileInMemory memory ownership

Recommended Posts

Helo7777    693
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this