 0; i <= arr565.length+1; i++) {
      debug("rgb565, offset=" + i);

      fnTexOrSubImage(gl.RGB, gl.UNSIGNED_SHORT_5_6_5, view565, i);

      var effectiveViewLen = arr565.length - i;

      if (effectiveViewLen >= 1) {
        wtu.glErrorShouldBe(gl, gl.NO_ERROR);

        gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, readPixelView);
        debug(arrToStr(readPixelView));
        wtu.glErrorShouldBe(gl, gl.NO_ERROR);
        shouldBeWas(arr565[i], rgb888to565(readPixelView));

      } else {
   