Fix texture completeness for non-POT textures on GLES2/WebGL