diff --git a/src/rendering/hwrenderer/doom_levelmesh.h b/src/rendering/hwrenderer/doom_levelmesh.h index f9f0f8b66..4b8874b82 100644 --- a/src/rendering/hwrenderer/doom_levelmesh.h +++ b/src/rendering/hwrenderer/doom_levelmesh.h @@ -77,7 +77,7 @@ private: static PlaneAxis BestAxis(const FVector4& p); BBox GetBoundsFromSurface(const hwrenderer::Surface& surface) const; - inline int AllocUvs(int amount) { return LightmapUvs.Reserve(amount * 2); } + inline int AllocUvs(int amount) { return LightmapUvs.Reserve(amount); } void BuildSurfaceParams(int lightMapTextureWidth, int lightMapTextureHeight, hwrenderer::Surface& surface); void FinishSurface(int lightmapTextureWidth, int lightmapTextureHeight, RectPacker& packer, hwrenderer::Surface& surface);