From 598ce8a2efe2e7ed26afa9ce1877b11d2e602df3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 9 Feb 2020 08:32:40 +0100 Subject: [PATCH] - increased amount of vertices to allow handling voxel packs. This is merely a stopgap until the code can be properly refactored. --- source/common/rendering/hwrenderer/data/flatvertices.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/rendering/hwrenderer/data/flatvertices.h b/source/common/rendering/hwrenderer/data/flatvertices.h index c53941ff1..acd88dbb6 100644 --- a/source/common/rendering/hwrenderer/data/flatvertices.h +++ b/source/common/rendering/hwrenderer/data/flatvertices.h @@ -53,8 +53,8 @@ class FFlatVertexBuffer unsigned int mNumReserved; - static const unsigned int BUFFER_SIZE = 2000000; - static const unsigned int BUFFER_SIZE_TO_USE = 1999500; + static const unsigned int BUFFER_SIZE = 4000000; // Was upped from 2000000 to account for voxels not being implemented with a separate vertex buffer. + static const unsigned int BUFFER_SIZE_TO_USE = BUFFER_SIZE-500; public: enum