tearing opengl

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
OpenGL has a function to sync the frame buffer with the vertical refresh to prevent tearing.
What function? Can you give some examples.
It gives me an error:
undefined reference to 'wglSwapIntervalEXT(int)@4'
Is there another way of doing it?
Did you link the proper libraries?
What library? I have linked gdi32, opengl32, glu32, user32
Last edited on
I don't think wglSwapIntervalEXT is supported by my hardware. Is there another way of doing this?
Topic archived. No new replies allowed.