Fix AllocUvs

This commit is contained in:
RaveYard 2023-09-01 09:30:52 +02:00 committed by Christoph Oelckers
parent b73f42f58b
commit 72ccf127ba

View file

@ -77,7 +77,7 @@ private:
static PlaneAxis BestAxis(const FVector4& p); static PlaneAxis BestAxis(const FVector4& p);
BBox GetBoundsFromSurface(const hwrenderer::Surface& surface) const; 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 BuildSurfaceParams(int lightMapTextureWidth, int lightMapTextureHeight, hwrenderer::Surface& surface);
void FinishSurface(int lightmapTextureWidth, int lightmapTextureHeight, RectPacker& packer, hwrenderer::Surface& surface); void FinishSurface(int lightmapTextureWidth, int lightmapTextureHeight, RectPacker& packer, hwrenderer::Surface& surface);