modify main to swapBuffers early to make trace clearer
add file with just the gl events to show, for apitrace