function restoreSkipState(gl) {
  gl.pixelStorei(UNPACK_ALIGNMENT, lastPackState.unpackAlignment);

  if (utils.isWebGL2(gl)) {
    gl.pixelStorei(UNPACK_ROW_LENGTH, lastPackState.unpackRowLength);
    gl.pixelStorei(UNPACK_IMAGE_HEIGHT, lastPackState.unpackImageHeight);
    gl.pixelStorei(UNPACK_SKIP_PIXELS, lastPackState.unpackSkipPixels);
    gl.pixelStorei(UNPACK_SKIP_ROWS, lastPackState.unpackSkipRows);
    gl.pixelStorei(UNPACK_SKIP_IMAGES, lastPackState.unpackSkipImages);
  }
}
Restores state related to data size
@param {WebGLRenderingContext} gl the WebGLRenderingContext
@private