Adjust LOD for upscaled, non power-of-two textures.

Also put back checks for OpenGL version and restore OpenGL 1.1
requirement.