ComputeTest: Fix Vulkan error

This commit is contained in:
SirLynix
2023-07-21 08:57:07 +02:00
committed by Jérôme Leclercq
parent dee47c6f15
commit e3da81dff4
3 changed files with 6 additions and 2 deletions

View File

@@ -83,6 +83,9 @@ namespace Nz
break;
}
if (!params.buildMipmaps)
texParams.levelCount = image.GetLevelCount();
std::shared_ptr<Texture> texture = params.renderDevice->InstantiateTexture(texParams, image.GetConstPixels(), params.buildMipmaps);
texture->SetFilePath(image.GetFilePath());