dds import fix: force block compressed format to min 4x4 size
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user