Jump to content
  • Advertisement
Sign in to follow this  
fanaticlatic

OpenGL Front Buffer Corruption

This topic is 2345 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 All,

I'm having a strange intermittent issue with an opengl app using wglsharelists I have running on a multi-device-multi-monitor setup.

The Question:
I am wondering if anyone has had similar issues and if they can remember how they resolved it or point me in a direction to track this down. Specifically with regard to how wglsharelists and opengl contexts behave when focus is lost.

The Detail:
The game will start and run in fullscreen mode correctly no problems. When you switch focus to another application and then switch back to the game about 20% of the time the game will reappear with the secondary screen showing a garbled output whilst the primary is okay. This garbled output if you can imagine is like seeing the secondary screen rendered twice side by side with alternate pixel blocks of roughly 8x8 pixels correct on each 'version' of what should be displayed. The main screen output remains correct.

My Theories:
At first I thought it might be a lost device type issue but opengl for the most part is not troubled by dropping out of focus etc. in the same way as directx.

My next thought is resource cleanup or access could be wrong or maybe a memory leak. As I have tested the system using a single device on multiple monitors without any problems I would suspect a resource issue rather than a memory leak.

I have recently altered my display code to allow any monitor in a multi monitor system to be regarded as the primary monitor. So I am pretty sure the fault will lie in this new system. Perhaps I am releasing or not releasing resources correctly or I may be marking the wrong opengl context to the texture resources?


Thanks in advance,

Mark.

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!