• Advertisement
Sign in to follow this  

D2D1.1 EndDraw or Present for device lost?

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