We are developing a graphical Max external that utilizes OpenGL on a Mac under AGL. We are calling OpenGL in a Qelem. When we use OpenGL in a fullscreen context on a CRT we experience flicker and tearing. This does not occur when we use OpenGL within a window.
We have tried using the form of double buffering recommended by Apple, but this presents a new set of problems, as (desired) traces left by our graphical objects do not appear in both buffers and thus appear in only half of our frames.
Does anyone have any advice on synchronizing our OpenGL calls with the display raster retrace?