Jump to content
  • Advertisement
Sign in to follow this  
spock83

OpenGL Glut stops running when window loses focus

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

Hi,

I'm coding a program which is something like a simulation and the results are rendered in real time. I'm using GLUT to create the display window. Since the main program should be running the whole time, the program is called once using glutDisplayFunc(). The program will use OpenGL functions to render, swap buffers etc and call exit() to terminate everything when it finishes.

The problem is that when the glut window loses focus (eg, i click on another window), the glut window stops updating, even though the simulation is running OK. The program is coded using MSVC and ran in windows XP. However, when I run the program in Windows 7, the window updates just fine.

Can anyone explain to me why the window stops updating, and is there any solution for that?

Thank you

Share this post


Link to post
Share on other sites
Advertisement
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!