Sign in to follow this  
alex_myrpg

(Hopefully) easy Direct3D Texture question

Recommended Posts

alex_myrpg    351
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
DrunkenHyena    805
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

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