Got two windows. Both got their glControls. When i move one window over the other you can see remnants of the top window.
Both controls PaintEvent got this code^
GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); GL.MatrixMode(MatrixMode.Modelview); GL.LoadIdentity(); DrawRects(); SwapBuffers();
DrawRects() is very simple method - nothing fancy about it.
How to avoid such a bug?