diff --git a/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp b/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp index c49593b51..311196608 100644 --- a/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp +++ b/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp @@ -96,7 +96,7 @@ void VkLightmap::SelectSurfaces(const TArray& surfaces) selectedSurfaces.Clear(); const int spacing = 3; // Note: the spacing is here to avoid that the resolve sampler finds data from other surface tiles - RectPacker packer(bakeImageSize, bakeImageSize, RectPacker::Spacing(spacing)); + RectPacker packer(bakeImageSize - 2, bakeImageSize - 2, RectPacker::Spacing(spacing)); for (int i = 0, count = surfaces.Size(); i < count; i++) {