corrected mac function pointer loading, simplified process of checking if glGenerateMipmap is available