Format texture_atlas.cpp

This commit is contained in:
Dan Paulat 2025-06-17 20:17:58 -05:00
parent fdcc5f01c9
commit 9d13023a51

View file

@ -390,7 +390,6 @@ TextureAtlas::Impl::LoadImage(const std::string& imagePath, double scale)
QUrl url = QUrl::fromUserInput(qImagePath);
if (url.isLocalFile())
{
QString suffix = QFileInfo(qImagePath).suffix().toLower();
@ -448,13 +447,13 @@ TextureAtlas::Impl::LoadImage(const std::string& imagePath, double scale)
// If no alpha channel, replace black with transparent
if (numChannels == 3)
{
std::for_each(
std::execution::par,
std::for_each(std::execution::par,
view.begin(),
view.end(),
[](boost::gil::rgba8_pixel_t& pixel)
{
static const boost::gil::rgba8_pixel_t kBlack {0, 0, 0, 255};
static const boost::gil::rgba8_pixel_t kBlack {
0, 0, 0, 255};
if (pixel == kBlack)
{
pixel[3] = 0;