Mar 9, 2011 at 1:14am UTC
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 UTC
Mar 9, 2011 at 2:15am UTC
OpenGL has a function to sync the frame buffer with the vertical refresh to prevent tearing.
Mar 9, 2011 at 3:00am UTC
What function? Can you give some examples.
Mar 11, 2011 at 12:18am UTC
Is there another way of doing it?
Mar 11, 2011 at 12:21am UTC
Did you link the proper libraries?
Mar 11, 2011 at 1:00am UTC
What library? I have linked gdi32, opengl32, glu32, user32
Last edited on Mar 11, 2011 at 1:01am UTC
Mar 12, 2011 at 7:41pm UTC
I don't think wglSwapIntervalEXT is supported by my hardware. Is there another way of doing this?