I have a problem when trying to draw in the overlay plane. For example, in the custom select tool, when I click and drag the cursor, the view becomes gray, so I can't see what I'm selecting until I release the mouse button. Sometimes it's even worse, as the view stays gray even after the mouse button has been released.
I enclose all the drawing in view.beginGL() and view.endGL(). Is there something else that has to be done? I have the same problem with various examples from RobTheBloke and other sources, so maybe it has to do with something other than the code itself?
Thanks in advance.