Those checks were *very likely* meant to clamp the max value, not the min one. Fixes https://github.com/godotengine/godot/issues/10059#issuecomment-606993001.
Remove rg-etc1 code. Also updated travis to use ubuntu 14.04. Fixes #8457.