Skip to content

bug #287

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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