• Advertisement
Sign in to follow this  

(Hopefully) easy Direct3D Texture question

This topic is 4714 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, my question is - how do i restore a texture in managed Direct3D when the device is reset, after being lost? i get the following error messages:
Quote:
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.DirectX.Direct3DX.dll GetUnmanagedTexture: Object reference not set to an instance of an object.
maybe i have to reload the texture from a bitmap/file, i dunno. i don't think this would be very quick though. please help asap... thx in advance, alex

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Use managed textures instead.

Share this post


Link to post
Share on other sites
Using Managed Textures is really easy and will work fine almost all the time. If you can't use them, then you need to release the texture when you lost the device and reload it when you regain it.

Share this post


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

  • Advertisement