I'm trying to create a transparent overlay, which I have and works fine, but when I add the "SwapBuffers" part, the background color is changed to black.
What I've done: I created a normal form, made it transparent, made it maximized and set it to "no border". Then I added the GLControl, docked it to all sides & set the backcolor to "transparent".
Then on the "Paint" event, I do this (just as a test):
GL.Clear(ClearBufferMask.ColorBufferBit) GL.Clear(ClearBufferMask.DepthBufferBit) 'DrawLine(R, G, B, A, X, Y, Z, LineWidth) DrawLine(100, 0, 0, 100, 20, 20, 20, 1) OpenGL.SwapBuffers()
Then when I run it the overlay goes black... If I out-comment the SwapBuffer everything works fine, but then nothing will get drawn...
So what am I doing wrong?