Fix missing mipIndex when clearing lightmap textures with a buffer on baking start

This commit is contained in:
Wojtek Figat
2021-06-01 13:29:42 +02:00
parent c5405183c9
commit accbef6841

View File

@@ -70,7 +70,7 @@ void ShadowsOfMordor::Builder::onJobRender(GPUContext* context)
{
uint32 rowPitch, slicePitch;
texture->ComputePitch(mipIndex, rowPitch, slicePitch);
context->UpdateTexture(textures[textureIndex], 0, 0, cleaner, rowPitch, slicePitch);
context->UpdateTexture(textures[textureIndex], 0, mipIndex, cleaner, rowPitch, slicePitch);
}
}
}