Wrote code to track down gl context switch fails.