Skip to content

Commit

Permalink
[material] fixed a false positive error log when loading the subway w…
Browse files Browse the repository at this point in the history
…orld
  • Loading branch information
PanosK92 committed Nov 18, 2024
1 parent d6707c1 commit 328c687
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions runtime/Rendering/Material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,7 @@ namespace Spartan
}
else
{
if (texture_color->IsCompressedFormat() || texture_alpha_mask->IsCompressedFormat())
{
SP_LOG_ERROR("Alpha mask won't be merged into albedo because at least one texture is compressed.", m_object_name.c_str());
}
else
if (!texture_color->IsCompressedFormat() && !texture_alpha_mask->IsCompressedFormat())
{
texture_packing::merge_alpha_mask_into_color_alpha(texture_color->GetMip(0, 0).bytes, texture_alpha_mask->GetMip(0, 0).bytes);
}
Expand Down

0 comments on commit 328c687

Please sign in to comment.