pix-plot
pix-plot copied to clipboard
bug
// Get the number of atlases to load into this texture Texture.prototype.getAtlasCount = function() { var val = (data.atlasCount / config.atlasesPerTex) > (this.idx + 1) ? config.atlasesPerTex : data.atlasCount % config.atlasesPerTex; // handle special case of single atlas that's size of single texture return val ? val : 1; }
if data.atlasCount == 16 && config.atlasesPerTex == 16 && this.idx == 0, then val is 16 % 16 ==0 , return 1。but return must be 16。