This might fix the gl testing.

Added special method to context that runs a test multiple times
in the paint event handler. If it succeeds one time, all is well.