some cleanups, flip GL captured buffer using a 2nd buffer + CPU