Skip to content

bug #287

@ruisen2020

Description

@ruisen2020

// 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。

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions