Jump to content
  • Advertisement
Sign in to follow this  
Gumgo

OpenGL Rendering gets "crackly" when moving the window...

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

Whenever I resize my OpenGL window it does this: Before After What can I do to fix this? Alternatively, how can I disable resizing of the window and maximizing (that may be more about Windows API)

Share this post


Link to post
Share on other sites
Advertisement
by window do you mean MS window or openGL viewport ?

To prevent resizing the openGL viewport, just don't send any glViewport command. To prevent resizing a window, just suppress the resize/maximize buttons.

Share this post


Link to post
Share on other sites
If you resize the window, always insure you resize the viewport to the
new window size.

Also, after resizing the window and viewport, insure you clear the color
and z buffers, and reset the identity matrix via glLoadIdentity()

This might fix the problem.

If you dont want to allow resizing, just use the WS_OVERLAPPED or
WS_POPUP window styles when calling CreateWindow/CreateWindowEx

Hope this helps!

Share this post


Link to post
Share on other sites
( WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX ) does the trick, thanks!

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!