Fixed generate call arguments in DynamicAtlas

This commit is contained in:
Chlumsky 2021-09-19 18:15:58 +02:00
parent ae40bf4a3a
commit b5d54f3012
2 changed files with 1 additions and 2 deletions

View File

@ -33,7 +33,6 @@ private:
std::vector<Rectangle> rectangles; std::vector<Rectangle> rectangles;
std::vector<Remap> remapBuffer; std::vector<Remap> remapBuffer;
int totalArea; int totalArea;
GeneratorAttributes genAttribs;
int padding; int padding;
}; };

View File

@ -52,7 +52,7 @@ void DynamicAtlas<AtlasGenerator>::add(GlyphGeometry *glyphs, int count) {
glyphs[remapBuffer[i].index-glyphCount].placeBox(rectangles[i].x, rectangles[i].y); glyphs[remapBuffer[i].index-glyphCount].placeBox(rectangles[i].x, rectangles[i].y);
} }
} }
generator.generate(glyphs, count, genAttribs); generator.generate(glyphs, count);
glyphCount += count; glyphCount += count;
} }