Skip to content

Commit

Permalink
make sure the atlas is non-zero to fix render tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Aug 28, 2018
1 parent 46836aa commit f547f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/image_atlas.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class ImageAtlas {
}

const {w, h} = binpack(bins);
const image = new RGBAImage({width: w, height: h});
const image = new RGBAImage({width: w || 1, height: h || 1});

for (const id in icons) {
const src = icons[id];
Expand Down

0 comments on commit f547f6e

Please sign in to comment.