tearing opengl

Mar 9, 2011 at 1:14am
I have an OpenGL application. When I try to draw a multi-color triangle, it tears.
How do I fix that? A timer would work where it calls the draw function 60 times a second, but how do you do that?
Last edited on Mar 12, 2011 at 8:46pm
Mar 9, 2011 at 2:15am
OpenGL has a function to sync the frame buffer with the vertical refresh to prevent tearing.
Mar 9, 2011 at 3:00am
What function? Can you give some examples.
Mar 9, 2011 at 7:55pm
Mar 10, 2011 at 3:13am
It gives me an error:
undefined reference to 'wglSwapIntervalEXT(int)@4'
Mar 11, 2011 at 12:18am
Is there another way of doing it?
Mar 11, 2011 at 12:21am
Did you link the proper libraries?
Mar 11, 2011 at 1:00am
What library? I have linked gdi32, opengl32, glu32, user32
Last edited on Mar 11, 2011 at 1:01am
Mar 12, 2011 at 7:41pm
I don't think wglSwapIntervalEXT is supported by my hardware. Is there another way of doing this?
Topic archived. No new replies allowed.