Sign in to follow this  
hupsilardee

(D3D9): Managed resources not re-appearing after Reset() ?

Recommended Posts

I Reset() the device if F4 is pressed, toggling the fullscreen.
All my resources are loaded with the managed pool. I know vertex data is preserved, because meshes are still appearing with the correct shape, but for some reason, textures are disappearing. This only seems to happen when I load up a cube texture at the start of the game - without the skybox, other textures are restored correctly when fullscreen is toggled.

Anybody know what might be causing this?

Share this post


Link to post
Share on other sites
Solved. It was actually the DRAWING of the skybox that was causing problems. (Setting some shader constants which weren't reset for drawing meshes, making them appear black, which tricked me into thinking the textures were being lost).

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