catch/trace openGL errors in tests