From 1b46a6fd9a4a4eaad728c86f0ff618ed26e89367 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 7 Sep 2020 23:17:06 +0200 Subject: [PATCH] - removed bogus assert in buffer code. An empty buffer is a perfectly valid construct that may not be asserted upon. The 3D scene does not use indices so the buffer receives no data and remains empty. This made the softpoly renderer fail in debug builds. Performance issues aside it works fine now. Fixes #314 --- source/common/rendering/hwrenderer/data/buffers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/rendering/hwrenderer/data/buffers.h b/source/common/rendering/hwrenderer/data/buffers.h index 51110c72c..8ef57174e 100644 --- a/source/common/rendering/hwrenderer/data/buffers.h +++ b/source/common/rendering/hwrenderer/data/buffers.h @@ -56,7 +56,7 @@ public: virtual void Resize(size_t newsize) = 0; virtual void Map() {} // Only needed by old OpenGL but this needs to be in the interface. virtual void Unmap() {} - void *Memory() { assert(map); return map; } + void *Memory() { return map; } size_t Size() { return buffersize; } };