Jump to content
  • Advertisement
Sign in to follow this  
lochnator

D2D1.1 EndDraw or Present for device lost?

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

With the introduction of direct2d1.1 you now must call Present() after enddraw() to actually present the back buffer to the screen.  I'm a little confused though because it seems that both EndDraw() and Present() can return Results indicating device lost.  I also see examples where people ignore the error checking of EndDraw and simply catch device lost at the call to present().  Is there any recommendation on this?  

Share this post


Link to post
Share on other sites
Advertisement

If the device isn't available, both of them return the same thing. While the success of the Present call is not logically tied to the success of EndDraw call, in practice you can determine "device lost" if either of them returns that status. 

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!