WebGL checks indices are valid, see WebGL spec, #6.5.