Fix issues with jogl on osx
jogl makes some assumptions about state that have to be handled for panels. Also make sure to get a recent context etc.
Edited by Ken Martin
jogl makes some assumptions about state that have to be handled for panels. Also make sure to get a recent context etc.