Jump to content
  • Advertisement
Sign in to follow this  
mattropo1is

OpenGL freeglut glutSwapBuffers error when closing window

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

Sorry if this is just for OpenGL general questions, but I'm having a bit of trouble with freeGLUT's close function. My freeGLUT app works just fine, and if I close it by hand (press the Q key I have set up) everything finishes fine. But if I click on the window's X in the upper left, I get the message that: Error: Function <glutSwapBuffers> called with no current window defined. I know why it's happening (I continue to call the draw command because it hasn't hit my quit code that stops the rendering), but can't find the callback that gets triggered when someone clicks the window's close button as opposed to just using my keyboard method. I'm on windows if that helps. Anyone else run into this? Thanks in advance, M

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!