• Advertisement
Sign in to follow this  

Quick question about lost d3ddevice.

This topic is 4729 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 you know when you lose the d3dDevice, you have to reset all the resources first, eg vertexbuffers, textures, fonts. Then you would reset the d3dDevice. My question is do you have to reset the renderstates(eg d3dDevice->SetRenderState(..,..);) after resetting the d3dDevice, or is it possible to call them before the d3dDevice reset. eg is this possible 1. reset resources 2. reset renderstates 3. reset d3dDevice ? thanks

Share this post


Link to post
Share on other sites
Advertisement
All render states are lost when the device is reset. This means that you must first reset the device, then set all of your render states again. And remember, you only need to reset interfaces that were created in D3DPOOL_DEFAULT.

Share this post


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

  • Advertisement