Sign in to follow this  

OpenGL Glut stops running when window loses focus

Recommended Posts


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this