function saveSkipState(gl) {
  lastPackState.unpackAlignment = gl.getParameter(UNPACK_ALIGNMENT);

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