Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

cecelski

Directx and Window messages

This topic is 5655 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 was just wondering if anyone has had any problems directx9 and windows'' messages. My application runs fine until it loses focus(say a switch to another program). After this happens, lets say every odd call to the rendering code displays a slightly varied rendering of what I expect, while every even call displays what exactly what I expect. My window proc is the following: LRESULT WINAPI ktg_WindowProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) { switch( msg ) { case WM_DESTROY: ktg_DeleteResources(); PostQuitMessage( 0 ); return 0; default: break; } return DefWindowProc( hWnd, msg, wParam, lParam); } Thanks for any help.

Share this post


Link to post
Share on other sites
Advertisement
Sorry, for that vague description, but now I''ve narrowed it down a bit. Whenever I put my application behind another window, then bring it back to the front, I see that the vertex buffers I am using are then corrupted. Instead of the data I expect, it is filled with garbage. Has anyone encountered something similar to this?

Share this post


Link to post
Share on other sites

  • 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!