remove OpenGL 2.x call, it breaks Mac OSX