Jump to content
  • Advertisement
Sign in to follow this  
Living

It still return S_OK when device lost

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

I deal with lost device some months ago in our game demo. Now, I must deal with lost device in our editor. In the editor, the edit window use swapChain. The code like this: hr = swapChain_->Present( 0, 0, 0, 0, 0 ); if( SUCCEEDED(hr) ) { return; } if( hr == D3DERR_DEVICELOST ) { ..................... } But, when device lost, it would return in the first 'if'. And the code can't be continue for device lost. Simplly said, it still return S_OK when device lost~ I don't know why it would return success when device lost. [Edited by - Living on December 24, 2009 1:07:51 AM]

Share this post


Link to post
Share on other sites
Advertisement
The output window would print this:

Direct3D9: (ERROR) :************************************************************
Direct3D9: (ERROR) :ASSERTION FAILED! File e:\dxsdk\wggt_apr07\private\multimedia\directx\dxg\d3d9\fw\ddgdi32.c Line 5013: pSurf->fpVidMem != (ULONG_PTR)NULL
Direct3D9: (ERROR) :************************************************************

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!