Jump to content
  • Advertisement
Sign in to follow this  
Etyrn

Window still rendering ontop when not highlighted?

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

Hey, I'm not quite sure what to make of this problem. I used to have this problem when using GLUT, and now that I've switched to GLFW I still seem to have it. Even happened with other GLUT examples I'd downloaded/tested, though they were pretty basic. Took a screenshot and hosted to give you an example, here it is: http://img87.imageshack.us/img87/6536/glerror9nx.jpg As you can see Windows Explorer is getting shown underneath the client even when highlighted. It also has a highlighted bar, while the client does not. When I dragged it to the right, some of it seemed to stick to the newly freed part. I must admit this is pretty darned weird. Anyone know what's going on? And if so, what should I do to go about fixing it? Any and all help is appreciated! -Etyrn

Share this post


Link to post
Share on other sites
Advertisement
I'm not sure what the problem is - but I'm pretty sure it isn't your (nor GLUT or GLFW's) responsibility to paint on the pixels it doesn't own. Maybe try putting a pause/delay in the game loop to free CPU resources?

Share this post


Link to post
Share on other sites
Well, I already have a Sleep(0); at the end of every render. I suppose it is resources, though. It doesn't seem to happen if I start it up straight after a computer restart. Thanks! 'Til I get a better computer, I'll just work on making it more efficient, organized, and check for allocated memory that isn't being well... deallocated. O_o


-Etyrn

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.

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!