Fix mipmap generation for NPOT textures.

Use driver/hardware mipmap generation on OpenGL 3.0 and higher.

Remove ‘gl_maxmip’ cvar, not really useful.

Add ‘gl_texture_non_power_of_two’ cvar, enabled by default.