Texture atlas should fill unused pixels with magenta

This commit is contained in:
Dan Paulat 2022-10-06 00:32:51 -05:00
parent fb37139073
commit d3f7347be0

View file

@ -131,6 +131,8 @@ void TextureAtlas::BuildAtlas(size_t width, size_t height)
// Clear atlas
p->atlas_.recreate(width, height);
boost::gil::rgba8_view_t atlasView = boost::gil::view(p->atlas_);
boost::gil::fill_pixels(atlasView,
boost::gil::rgba8_pixel_t {255, 0, 255, 255});
// Populate atlas
logger_->trace("Populating atlas");