dds import fix: force block compressed format to min 4x4 size

This commit is contained in:
Turanszki Janos
2021-05-09 13:06:35 +02:00
parent be3deee977
commit 5a3410219b
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -226,6 +226,12 @@ namespace wiResourceManager
break;
}
if (device->IsFormatBlockCompressed(desc.Format))
{
desc.Width = std::max(4u, desc.Width);
desc.Height = std::max(4u, desc.Height);
}
success = device->CreateTexture(&desc, InitData.data(), &resource->texture);
device->SetName(&resource->texture, name.c_str());
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates, breaking compatibility changes
const int minor = 56;
// minor bug fixes, alterations, refactors, updates
const int revision = 9;
const int revision = 10;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);