Fix textures converting when cooking

This commit is contained in:
Wojtek Figat
2021-07-13 12:51:28 +02:00
parent 38e2824415
commit 1c03b21a43
2 changed files with 5 additions and 2 deletions

View File

@@ -361,6 +361,7 @@ protected:
if (!_streamingTexture->GetOwner()->GetMipDataCustomPitch(absoluteMipIndex, rowPitch, slicePitch))
texture->ComputePitch(_mipIndex, rowPitch, slicePitch);
_data.Link(data);
ASSERT(data.Length() >= slicePitch * arraySize);
// Update all array slices
const byte* dataSource = data.Get();