attempted fix for mac opengl problems