Manually wrapped most of the problematic OpenGL APIs.