Advertisement Jump to content
Sign in to follow this  
lochnator

D2D1.1 EndDraw or Present for device lost?

This topic is 1159 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!