From accbef68412a5bc880b1553e215b2e4fe94c993d Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 1 Jun 2021 13:29:42 +0200 Subject: [PATCH] Fix missing `mipIndex` when clearing lightmap textures with a buffer on baking start --- Source/Engine/ShadowsOfMordor/Builder.Jobs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/ShadowsOfMordor/Builder.Jobs.cpp b/Source/Engine/ShadowsOfMordor/Builder.Jobs.cpp index 305cc71b8..867c5b3f9 100644 --- a/Source/Engine/ShadowsOfMordor/Builder.Jobs.cpp +++ b/Source/Engine/ShadowsOfMordor/Builder.Jobs.cpp @@ -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); } } }