
glControl moving over other glControl.
Posted Wednesday, 20 April, 2011 - 15:30 by manuka inGot 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?

