Implemented GL_ARB_texture_non_power_of_two (except for auto mipmap generation).