mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
Fix crash when trying to render outside the texture
This commit is contained in:
parent
9c2016ca7c
commit
59a55c3490
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ void VkLightmap::SelectSurfaces(const TArray<LevelMeshSurface*>& 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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue