Set num subresources correctly for textures

This commit is contained in:
baldurk
2015-10-05 12:33:42 +02:00
parent a25d07cf59
commit 5bb66392b0
+1 -1
View File
@@ -1280,7 +1280,7 @@ FetchTexture VulkanReplay::GetTexture(ResourceId id)
ret.msQual = 0;
ret.msSamp = 1;
ret.name = (ret.ID == resid ? "WSI Presentable Image" : StringFormat::Fmt("Image %llu", ret.ID));
ret.numSubresources = 1;
ret.numSubresources = ret.mips*ret.arraysize;
ret.format = MakeResourceFormat(iminfo.format);
switch(iminfo.type)
{