Skip to content

Commit

Permalink
Update setFrameQuad.js
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey authored Sep 21, 2021
1 parent 2cbcb95 commit d7d70ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* of the image.
* @param {number} [options.maxTextureSize] Limit the maximum texture size to a
* square of this size. The size is also limited by the WebGL maximum
* size for webgl-based layers or 16384 for canvas-based layers.
* size for webgl-based layers or 8192 for canvas-based layers.
* @param {number} [options.maxTextures=1] If more than one, allow multiple
* textures to increase the size of the individual frames. The number of
* textures will be capped by ``maxTotalTexturePixels`` as well as this
Expand Down Expand Up @@ -60,7 +60,7 @@ function setFrameQuad(tileinfo, layer, options) {
maxTotalPixels = options.maxTotalTexturePixels || 1073741824,
alignment = options.alignment || 16;
let numFrames = (tileinfo.frames || []).length || 1,
texSize = maxTextureSize || 16384,
texSize = maxTextureSize || 8192,
textures = options.maxTextures || 1;
const frames = [];
for (let fidx = options.frameBase || 0; fidx < numFrames; fidx += options.frameStride || 1) {
Expand Down

0 comments on commit d7d70ab

Please sign in to comment.