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