Jump to content
  • Advertisement
Sign in to follow this  
eal

resetting the display

This topic is 4979 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

hey, i'm trying to get my d3d program to resume if it gets minimized. i'm following the steps below: IDirect3D8 *D3D8OBJ; 1) test if "D3DERR_DEVICELOST" is returned by by "Present()" 2) if so, destroy D3D8OBJ 3) move into a loop until "TestCooperativeLevel()" returns "D3DERR_DEVICELOST" 4) then make a call to "Reset()" so uh... any ideas why it doesn't resume? the program also doesn't minimize at all unless its running at a different resolution than the desktop

Share this post


Link to post
Share on other sites
Advertisement
You don't actually destroy the Direct3D object. Release all device dependent objects (vertex buffer, index buffer, textures) before resetting the device. Then you'll have to reload those objects.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Don't destroy the device! Check TestCooperativeLevel() for D3DEER_DEVICENOTRESET (or something like that) and call IDirect3DDevice9::Reset() then.

Share this post


Link to post
Share on other sites
thanks for the help! (i also found i wasn't running through the message loop while it was minimized). Does anyone know why a program wouldn't minimize if the destop was running at the same resolution as the program?

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!