Mac OS OpenGL texture attributes fix