pass NULL instead of nullptr to glXMakdeCurrent