Jump to content
  • Advertisement
Sign in to follow this  
soumya_iiitc

OpenGL wglMakeCurrent

This topic is 3777 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 am using two buffers for drawing.First i render my objects into one buffer and then i change the rendering context to second buffer and then rendering my objects in to second buffer. I am using wglMakeCurrent() When we switch rendering context opengl is clearing previous contexts bits and drawings. What is the solution? Should i have to render all the time sequentially? This is linked with my previous post but i have separated it into two parts for better under standing. Regards, Soumyadipta De

Share this post


Link to post
Share on other sites
Advertisement
It shouldn't clear anything that has been drawn in a previous context unless Windows is repainting that particular area of the screen for some reason. I would recommend setting up a paint event that renders the relevant scene, using wglMakeCurrent as the first command, and then, if you wish to play safe, another at the end of the procedure to switch back to whatever context OpenGL was using before.

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!