ComputeTest: Fix Vulkan error
This commit is contained in:
committed by
Jérôme Leclercq
parent
dee47c6f15
commit
e3da81dff4
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user