Bug 966630 - Clamp level to TexImage operations to [0..31]. r=jgilbert, a=1.2.x+